This commit is contained in:
Julien Fastré 2023-04-05 19:31:27 +02:00
parent 386d1e44d0
commit 3df8ee6dc4
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -531,7 +531,7 @@ class CalendarController extends AbstractController
'returnPath' => $request->query->get('returnPath', null),
];
if ($calendar->getContext() === 'accompanying_period'){
if ($calendar->getContext() === 'accompanying_period') {
$routeParams['accompanying_period_id'] = $calendar->getAccompanyingPeriod()->getId();
} elseif ($calendar->getContext() === 'person') {
$routeParams['person_id'] = $calendar->getPerson()->getId();