Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE.

This commit is contained in:
tjhunt 2006-08-20 15:37:42 +00:00
parent 948bf30099
commit 0f49e5655d

View 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;