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

This commit is contained in:
Mark Nelson 2014-06-03 14:15:12 -07:00
parent e7ea6b9a24
commit 546a2c95f4

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;