MDL-27030: Fix quiz overview report showing incorrect grades on regraded attempts
authorTony Levi <tony.levi@netspot.com.au>
Thu, 31 Mar 2011 05:36:13 +0000 (16:06 +1030)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 8 Aug 2011 22:34:54 +0000 (23:34 +0100)
Conflicts:

mod/quiz/report/overview/report.php

mod/quiz/report/overview/report.php

index de70778..aec7809 100644 (file)
@@ -117,11 +117,7 @@ class quiz_overview_report extends quiz_attempt_report {
         }
 
         // Load the required questions.
         }
 
         // Load the required questions.
-        if ($detailedmarks) {
-            $questions = quiz_report_get_significant_questions($quiz);
-        } else {
-            $questions = array();
-        }
+        $questions = quiz_report_get_significant_questions($quiz);
 
         $table = new quiz_report_overview_table($quiz, $this->context, $qmsubselect,
                 $groupstudents, $students, $detailedmarks, $questions, $candelete,
 
         $table = new quiz_report_overview_table($quiz, $this->context, $qmsubselect,
                 $groupstudents, $students, $detailedmarks, $questions, $candelete,