MDL-45803 mod_quiz: added attempt snapshot for the attempt and preview started events

This commit is contained in:
Mark Nelson
2014-06-11 13:57:23 -07:00
parent a6b91c8407
commit 159e18c977
+1
View File
@@ -310,6 +310,7 @@ function quiz_attempt_save_started($quizobj, $quba, $attempt) {
// Trigger the event.
$event->add_record_snapshot('quiz', $quizobj->get_quiz());
$event->add_record_snapshot('quiz_attempts', $attempt);
$event->trigger();
return $attempt;