MDL-21934 Removing all questions from the quiz should not delet overall feedback.
commiteffc982b1e25c90959e8ee9fe0c58810a6aea814
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 15 Aug 2011 17:47:03 +0000 (15 18:47 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 15 Aug 2011 17:47:03 +0000 (15 18:47 +0100)
tree0885c1ff7e27f0e927d119346a1fe7a834affdbe
parent7969f1ecf58afb69c5526c83b917aa0ae42d4490
MDL-21934 Removing all questions from the quiz should not delet overall feedback.

Overall feedback was being wiped because the quiz max grade was being set to zero when sumgrades was set to 0. The correct logic is to only set maxgrade to 0 if there are questions in the quiz and sumgrades is 0.
mod/quiz/locallib.php