Skip to content

Commit

Permalink
registration error for a training session
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfyWin authored and Elorfin committed Oct 26, 2023
1 parent 33be2f5 commit 4398a24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin/cursus/Manager/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ public function sendSessionInvitation(Session $session, array $users, bool $conf
$templateName = 'training_session_confirmation';
}

$workspace = $session->getWorkspace();
$course = $session->getCourse();
$trainersList = '';
/** @var SessionUser[] $sessionTrainers */
Expand Down Expand Up @@ -421,7 +422,7 @@ public function sendSessionInvitation(Session $session, array $users, bool $conf
'session_start' => $session->getStartDate()->format('d/m/Y'),
'session_end' => $session->getEndDate()->format('d/m/Y'),
'session_trainers' => $trainersList,
'workspace_url' => $this->routingHelper->workspaceUrl($course->getWorkspace()),
'workspace_url' => $workspace ? $this->routingHelper->workspaceUrl($workspace) : '',
'registration_confirmation_url' => $this->router->generate('apiv2_cursus_session_self_confirm', ['id' => $session->getUuid()], UrlGeneratorInterface::ABSOLUTE_URL), // TODO
];

Expand Down

0 comments on commit 4398a24

Please sign in to comment.