mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix EntityPersonCRUDController.php add 'person' key
This commit is contained in:
parent
116fe35ad2
commit
a80b36bb31
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user