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