Skip to content

Commit

Permalink
[Training] fixes event invitations always sent
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Dec 22, 2022
1 parent 8ecf15d commit 218adfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugin/cursus/Manager/EventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ public function addGroups(Event $event, array $groups, string $type = AbstractRe
}
}

$this->sendSessionEventInvitation($event, $users);
if ($event->getRegistrationMail()) {
$this->sendSessionEventInvitation($event, $users);
}

$this->om->endFlushSuite();

Expand Down

0 comments on commit 218adfb

Please sign in to comment.