[AMOS commit] MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary. Committed into Git: 2012-01-11 16:21 UTC

[AMOS commit] MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary. Committed into Git: 2012-01-11 16:21 UTC

by AMOS bot -
Number of replies: 0
Author: Tim Hunt
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.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=ef0376f4ef19ec93635a26cec6cb161aef4d0505
http://github.com/moodle/moodle/commit/ef0376f4ef19ec93635a26cec6cb161aef4d0505

+ 2.2 en [cannotstartgradesmismatch,mod_quiz]
+ 2.2 en [cannotstartnoquestions,mod_quiz]