mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-45803 mod_quiz: added attempt snapshot for the attempt and preview started events
This commit is contained in:
parent
e7ea6b9a24
commit
546a2c95f4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user