From: gustav_delius Date: Wed, 22 Mar 2006 17:18:55 +0000 (+0000) Subject: Fixed bug 4953 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=609c7d517d3bbcfa952502a7e1871041eff5aaa6;p=moodle.git Fixed bug 4953 --- diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index ef0e547b5e..a1b24eebf1 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -302,7 +302,7 @@ if ($responses = data_submitted() and empty($_POST['quizpassword'])) { // set the default event. This can be overruled by individual buttons. - $event = (array_key_exists('markall', $responses)) ? QUESTION_EVENTGRADE : + $event = (array_key_exists('markall', $responses)) ? QUESTION_EVENTSUBMIT : ($finishattempt ? QUESTION_EVENTCLOSE : QUESTION_EVENTSAVE); // Unset any variables we know are not responses