From 8e5e7187ea945dd365d93a5f53a429564cc936c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr> Date: Tue, 15 Jan 2019 09:07:16 +0100 Subject: [PATCH] Update Module.php --- module/Application/Module.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/module/Application/Module.php b/module/Application/Module.php index d7a1e6276a..58626431da 100755 --- a/module/Application/Module.php +++ b/module/Application/Module.php @@ -67,15 +67,12 @@ class Module implements ConsoleUsageProviderInterface, ConsoleBannerProviderInte switch ($name) { case 'intervenant': $role = $sm->get(ContextService::class)->getSelectedIdentityRole(); - if ($role && $entity = $role->getIntervenant()) { - $e->setParam($name, $entity); + if ($role && $role->getIntervenant()) { + $e->setParam($name, $role->getIntervenant()); }else{ $entity = $entityService->getBySourceCode($value); $e->setParam($name, $entity); } - - $entity = $entityService->getBySourceCode($value); - $e->setParam($name, $entity); break; case 'typeAgrementCode': $entity = $entityService->getByCode($value); -- GitLab