MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.
commit589f57835ff93e1f06236690b2976ad668b32e7d
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 11 Jan 2012 16:21:47 +0000 (11 16:21 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 13 Jan 2012 11:50:20 +0000 (13 11:50 +0000)
tree86c0227d865d0cf212cb58f155b560e15184d7ae
parentd4b150dd1311f8656b37d0bce1c822a81ca9ae51
MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.

It is only necessary when there are (non-preview) attempts. However,
after making this change we have to ensure users cannot start attempts
when ->grade > 0 and ->sumgrades = 0.

Display ->grade on the order and paging tab of edit.php, so it is clear
what is going on when you are using that tab.

Finally, improve the error message a student gets if they try to start a
quiz with no questions.
mod/quiz/edit.php
mod/quiz/editlib.php
mod/quiz/lang/en/quiz.php
mod/quiz/locallib.php
mod/quiz/startattempt.php