MDL-32783 quiz overdue handling: enforce end of grace period
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 7 Jun 2012 18:17:07 +0000 (19:17 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 7 Jun 2012 18:17:07 +0000 (19:17 +0100)
commita6866c7e9ff4c2b750df49ac4ec051687aaab8cc
tree098615e0e42328ed9f0be48d8966d26ff4b71077
parent4db061680e56b45ae5cc2c1b832c6a6f42b5a924
MDL-32783 quiz overdue handling: enforce end of grace period

The summary page was not enforcing the end of the grace period. If the
user had the summary page open, then they coudl still stubmit after the
end of the grace period.

Also, the editing form was not validating that the quiz grace period was
greater than quiz|graceperiodmin in the quiz configuration, and that
should be checked, so I added it.

I fear that processattempt.php is becoming very spaghetti-like with all
the timing rules, it really needs to be refactored, but not 2 weeks
before the 2.3 release. (When refactoring, we really need unit tests for
this.)
mod/quiz/lang/en/quiz.php
mod/quiz/mod_form.php
mod/quiz/processattempt.php
mod/quiz/summary.php