mirror of
https://github.com/moodle/moodle.git
synced 2025-05-05 07:48:21 +02:00
Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE.
This commit is contained in:
parent
948bf30099
commit
0f49e5655d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user