Details
Description
Student can't start new attempt if a quiz has timle limit between attempts and time limit for a quiz, and he doesn't submit previous attempt closing browser window instead.
After chat with Tim proposed solution is to add a check
&& $timenow - $quiz->delay1 - $quiz->timelimit < $lastattempt_obj->timestart
to the $timenow - $quiz->delay1 < $lastattempt when displaying error trying to start attempt.
We may need to additionaly check of $quiz->timelimit>0 to retain current behavour for not timed-out quizzes. There should be patch for both attempt start and displaying a button to do this.
Patch for 1.9 will be submitted for people who want to use it, for 2.0 it meant to go to the core.
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-3030 | Late quiz attempts should be closed automatically |
|
|
|
Just noting conditions that should be changed in 1.9:
mod/quiz/attempt.php - lines 163, 167
mod/quiz/view.php - lines 371, 374