]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15730 "in detailled report : scale grade to a fraction of the max grade and THEN...
authorjamiesensei <jamiesensei>
Mon, 21 Jul 2008 11:24:14 +0000 (11:24 +0000)
committerjamiesensei <jamiesensei>
Mon, 21 Jul 2008 11:24:14 +0000 (11:24 +0000)
mod/quiz/report/responses/responses_table.php

index ec0ba60db03cf129618b638e4d99641ea665a712..fb7b1084bc82f181a8bad878b114b0b29120b06d 100644 (file)
@@ -148,7 +148,8 @@ class quiz_report_responses_table extends table_sql {
             $question = $this->questions[$questionid];
             $responses =  get_question_actual_response($question, $statesforattempt[$questionid]);
             $response = (!empty($responses)? implode(', ',$responses) : '-');
-            $grade = $statesforattempt[$questionid]->last_graded->grade;
+            $grade = $statesforattempt[$questionid]->last_graded->grade
+                            / $this->questions[$questionid]->maxgrade;
             if (!$this->is_downloading()) {
                 $format_options = new stdClass;
                 $format_options->para = false;