From: tjhunt Date: Sun, 20 Aug 2006 15:37:42 +0000 (+0000) Subject: Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f49e5655d25188515f1420071e436ed6383685f;p=moodle.git Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE. --- diff --git a/question/type/truefalse/questiontype.php b/question/type/truefalse/questiontype.php index cd5208e414..ff28787019 100644 --- a/question/type/truefalse/questiontype.php +++ b/question/type/truefalse/questiontype.php @@ -197,7 +197,7 @@ class question_truefalse_qtype extends default_questiontype { $state->raw_grade = 0; } // Only allow one attempt at the question - $state->penalty = 1; + $state->penalty = 1 * $question->maxgrade; // mark the state as graded $state->event = ($state->event == QUESTION_EVENTCLOSE) ? QUESTION_EVENTCLOSEANDGRADE : QUESTION_EVENTGRADE;