From e5395a5fd532dd3370ce69f29dfbd5b5448649c1 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 21 Jul 2008 11:24:14 +0000 Subject: [PATCH] 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" --- mod/quiz/report/responses/responses_table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5