From 070511062a832a70c3c6afad9786724d3dacbf93 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 3 May 2012 19:45:18 +0100 Subject: [PATCH] MDL-32757 / MDL-3030 quiz: SQL typo breaks quiz editing. --- mod/quiz/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index 25f3cf50aea..14c7183febc 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -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