From: jamiesensei Date: Mon, 21 Jul 2008 11:24:14 +0000 (+0000) Subject: MDL-15730 "in detailled report : scale grade to a fraction of the max grade and THEN... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e5395a5fd532dd3370ce69f29dfbd5b5448649c1;p=moodle.git MDL-15730 "in detailled report : scale grade to a fraction of the max grade and THEN use it for calculating whether this is a correct / partially correct / or wrong answer" --- diff --git a/mod/quiz/report/responses/responses_table.php b/mod/quiz/report/responses/responses_table.php index ec0ba60db0..fb7b1084bc 100644 --- a/mod/quiz/report/responses/responses_table.php +++ b/mod/quiz/report/responses/responses_table.php @@ -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;