moodle/mod/quiz/simpletest
Tim Hunt 207d145dda quiz delays MDL-20956 don't let overdue attempts + delays block students.
Suppose a quiz has a 60 min time limit, and an enforced delay of 60 mins between attempts.

Suppose a sudent starts an attempt, and then closes their browser, and then comes back 2 hours later. When they try to restart the quiz, it is submitted immediately by the timer.

Now they are blocked out for the next hour.

After this change, they would no longer be blocked, becuse if their attemtp had been submitted at the end of the first hour, then they would already have waited an hour.

That is, we compare the current time with both $lastattempt->timefinish + $delay and $lastattempt->timestart + $timelimit + $delay.
2010-08-06 11:41:50 +00:00
..
testaccessrules.php quiz delays MDL-20956 don't let overdue attempts + delays block students. 2010-08-06 11:41:50 +00:00
testeditlib.php MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 11:57:52 +00:00
testlib.php MDL-19579 code coverage - add more initial $includecoverage attributes 2009-06-26 18:12:05 +00:00
testlocallib.php quiz editing: MDL-17284 Add question here garbled layout when adding to an empty quiz. 2010-05-01 08:11:25 +00:00