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

Update Module.php

parent cf9d5fec
No related branches found
No related tags found
2 merge requests!22Modulateurs structures 2,!20Modulateurs structures 2
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment