Commit acbd3d62 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

fixing assertion agent pour AMU

parent 62bd5590
Loading
Loading
Loading
Loading
+1 −0
Changes for module/Application/src/Application/Assertion/AgentAssertion.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ class AgentAssertion extends AbstractAssertion
        /** @var Agent|null $entity */
        $agentId = (($this->getMvcEvent()->getRouteMatch()->getParam('agent')));
        $entity = $this->getAgentService()->getAgent($agentId);
        if ($entity === null) $entity = $agent;
        if ($entity === null) return false;

        $structures = [];