mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-45803 mod_quiz: prevented the attempt_started event from being triggered twice
This commit is contained in:
parent
546a2c95f4
commit
400afba6ab
@ -183,7 +183,6 @@ if (!($quizobj->get_quiz()->attemptonlast && $lastattempt)) {
|
||||
$transaction = $DB->start_delegated_transaction();
|
||||
|
||||
$attempt = quiz_attempt_save_started($quizobj, $quba, $attempt);
|
||||
quiz_fire_attempt_started_event($attempt, $quizobj);
|
||||
|
||||
$transaction->allow_commit();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user