diff --git a/dta.zip b/dta.zip index 2775cc1483356b63dea0a9551ba63eed5cac91b5..a8faaeccf30697a162d13dad3847bb97551c0946 100644 Binary files a/dta.zip and b/dta.zip differ diff --git a/dta/utils/view.php b/dta/utils/view.php index 862480f82b6a6068475ed4e65e6e8862fd84220e..044ef7c3a354772106101f724e565e89a7b1843b 100644 --- a/dta/utils/view.php +++ b/dta/utils/view.php @@ -209,7 +209,7 @@ class ViewSubmissionUtils { $showncompetencies = explode(";", $summary->successfultestcompetencies); $overallcompetencies = explode(";", $summary->overalltestcompetencies); - for ($index=1, $size=count($overallcompetencies); $index<=$size; $index++) { + for ($index=0, $size=count($overallcompetencies); $index<$size; $index++) { $comp=$overallcompetencies[$index]; $shown=$showncompetencies[$index]; // If the competency was actually assessed by the assignment and tests, add a row in the table. @@ -221,8 +221,8 @@ class ViewSubmissionUtils { $tmp = ""; $tmp .= html_writer::tag("td", - floatval($shown)/floatval ($comp) . "% - (" . $shown . " / " . $comp . ")", +// floatval($shown)/floatval ($comp) . "% " . + "(" . $shown . " / " . $comp . ")", $resultrowattributes); $body .= html_writer::tag("tr", $tmp, $resultrowattributes);