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

Correction warning AgentService

parent e0edf6a1
Loading
Loading
Loading
Loading
+1 −0
Changes for module/Application/src/Application/Service/Agent/AgentService.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -384,6 +384,7 @@ class AgentService {

        //checking structure
        $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationHierarchiquePrincipaleByAgent($agent);
        if ($affectationsPrincipales === null) return [];
        $structure = null;
        if (count($affectationsPrincipales) === 1) {
            $structure = $affectationsPrincipales[0]->getStructure()->getNiv2();