diff --git a/mod/quiz/attemptlib.php b/mod/quiz/attemptlib.php
index <HASH>..<HASH> 100644
--- a/mod/quiz/attemptlib.php
+++ b/mod/quiz/attemptlib.php
@@ -539,6 +539,7 @@ class quiz_attempt extends quiz {
 
             case QUESTION_EVENTSAVE:
             case QUESTION_EVENTGRADE:
+            case QUESTION_EVENTSUBMIT:
                 return 'answered';
 
             case QUESTION_EVENTCLOSEANDGRADE:
MDL-<I> error unexpected event exception in essay question