]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE.
authortjhunt <tjhunt>
Sun, 20 Aug 2006 15:37:42 +0000 (15:37 +0000)
committertjhunt <tjhunt>
Sun, 20 Aug 2006 15:37:42 +0000 (15:37 +0000)
question/type/truefalse/questiontype.php

index cd5208e414125af5c96cf3755f48e0b3da696ce5..ff28787019bbbdf42794b86c3c7cfec7cc6a5e8c 100644 (file)
@@ -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;