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

[FIX] Calcul erroné de l'autorité de responsables de structures sans parent

parent b8cd1f09
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Application/Service/Agent/AgentService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ class AgentService {
                if (!empty($responsables)) return $responsables;
            }

            $structure = $structure->getParent();
            $structure = ($structure)?$structure->getParent():null;
        } while($structure !== null);

        return [];