MDL-27030: Fix quiz overview report showing incorrect grades on regraded attempts

This commit is contained in:
Tony Levi
2011-08-08 23:47:42 +01:00
committed by Tim Hunt
parent 4b85dc13ac
commit 6ad6368adc
+2 -5
View File
@@ -143,12 +143,9 @@ class quiz_overview_report extends quiz_default_report {
}
}
$questions = quiz_report_load_questions($quiz);
//work out the sql for this table.
if ($detailedmarks) {
$questions = quiz_report_load_questions($quiz);
} else {
$questions = array();
}
$table = new quiz_report_overview_table($quiz , $qmsubselect, $groupstudents,
$students, $detailedmarks, $questions, $candelete, $reporturl,
$displayoptions, $this->context);