MDL-45803 mod_quiz: prevented the attempt_started event from being triggered twice

This commit is contained in:
Mark Nelson 2014-06-03 14:16:54 -07:00
parent 546a2c95f4
commit 400afba6ab

View File

@ -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();