diff --git a/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php b/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php index 760b7ee9d..74f2d44fa 100644 --- a/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php +++ b/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php @@ -25,6 +25,15 @@ class EntityPersonCRUDController extends CRUDController { public function __construct(protected readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry) {} + protected function generateTemplateParameter(string $action, mixed $entity, Request $request, array $defaultTemplateParameters = []) + { + $templateParameters = parent::generateTemplateParameter($action, $entity, $request, $defaultTemplateParameters); + + $templateParameters['person'] = $this->getPerson($request); + + return $templateParameters; + } + /** * Override the base method to add a filtering step to a person. *