MDL-32757 / MDL-3030 quiz: SQL typo breaks quiz editing.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 3 May 2012 18:45:18 +0000 (19:45 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 3 May 2012 18:45:18 +0000 (19:45 +0100)
mod/quiz/locallib.php

index 25f3cf5..14c7183 100644 (file)
@@ -626,7 +626,7 @@ function quiz_update_all_final_grades($quiz) {
             FROM {quiz_attempts} iquiza
 
             WHERE
-                iquiza.state = :istatefinished
+                iquiza.state = :istatefinished AND
                 iquiza.preview = 0 AND
                 iquiza.quiz = :iquizid