Skip to content

Commit

Permalink
Test: Fix Sending Notification Mails on Auto-End
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Feb 17, 2025
1 parent c579fd9 commit 07944f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Modules/Test/classes/class.ilTestPlayerAbstractGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,11 +697,6 @@ public function finishTestCmd()
ilSession::set('tst_pass_finish', 1);
}

$this->sendNewPassFinishedNotificationEmailIfActivated(
$this->test_session->getActiveId(),
$this->test_session->getPass()
);

$this->performTestPassFinishedTasks();

$this->ctrl->redirect($this, ilTestPlayerCommands::AFTER_TEST_PASS_FINISHED);
Expand All @@ -713,7 +708,12 @@ protected function performTestPassFinishedTasks(): void
$this->test_session,
$this->object->getId()
);
$finishTasks->performFinishTasks($this->processLocker);
$finishTasks->performFinishTasks($this->process_locker);

$this->sendNewPassFinishedNotificationEmailIfActivated(
$this->test_session->getActiveId(),
$this->test_session->getPass()
);
}

protected function sendNewPassFinishedNotificationEmailIfActivated(int $active_id, int $pass)
Expand Down

0 comments on commit 07944f1

Please sign in to comment.