Skip to content
Snippets Groups Projects
Commit 8e5e7187 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Update Module.php

parent cf9d5fec
Branches
Tags
2 merge requests!22Modulateurs structures 2,!20Modulateurs structures 2
...@@ -67,15 +67,12 @@ class Module implements ConsoleUsageProviderInterface, ConsoleBannerProviderInte ...@@ -67,15 +67,12 @@ class Module implements ConsoleUsageProviderInterface, ConsoleBannerProviderInte
switch ($name) { switch ($name) {
case 'intervenant': case 'intervenant':
$role = $sm->get(ContextService::class)->getSelectedIdentityRole(); $role = $sm->get(ContextService::class)->getSelectedIdentityRole();
if ($role && $entity = $role->getIntervenant()) { if ($role && $role->getIntervenant()) {
$e->setParam($name, $entity); $e->setParam($name, $role->getIntervenant());
}else{ }else{
$entity = $entityService->getBySourceCode($value); $entity = $entityService->getBySourceCode($value);
$e->setParam($name, $entity); $e->setParam($name, $entity);
} }
$entity = $entityService->getBySourceCode($value);
$e->setParam($name, $entity);
break; break;
case 'typeAgrementCode': case 'typeAgrementCode':
$entity = $entityService->getByCode($value); $entity = $entityService->getByCode($value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment