Commit 8e5e7187 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Update Module.php

parent cf9d5fec
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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);