mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	Fix EntityPersonCRUDController.php add 'person' key
This commit is contained in:
		| @@ -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. | ||||
|      * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user