Add list of activities in AccompanyingCourse Menu

This commit is contained in:
Jean-Francois Monfort
2021-05-20 17:08:47 +02:00
parent 8fe00b4c2b
commit 2bae684df9
3 changed files with 21 additions and 6 deletions

View File

@@ -311,6 +311,10 @@ class ActivityController extends AbstractController
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
*/
if ($view === null) {
throw $this->createNotFoundException('Template not found');
}
return $this->render($view, array(
'entity' => $entity,
'edit_form' => $form->createView(),
@@ -379,6 +383,10 @@ class ActivityController extends AbstractController
}
}
if ($view === null) {
throw $this->createNotFoundException('Template not found');
}
return $this->render($view, array(
'activity' => $activity,
'delete_form' => $form->createView(),