From 0f49e5655d25188515f1420071e436ed6383685f Mon Sep 17 00:00:00 2001 From: tjhunt Date: Sun, 20 Aug 2006 15:37:42 +0000 Subject: [PATCH] Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE. --- question/type/truefalse/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/truefalse/questiontype.php b/question/type/truefalse/questiontype.php index cd5208e4141..ff28787019b 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;