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

Fix agentforce

parent f1966849
Loading
Loading
Loading
Loading
+1 −0
Changes for module/Structure/src/Structure/Controller/StructureController.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@ class StructureController extends AbstractActionController {
        });
        $superieurs = []; $autorites = [];
        foreach ($allAgents as $agent) {
            if ($agent instanceof StructureAgentForce) $agent = $agent->getAgent();
            $sup = $this->getAgentService()->computeSuperieures($agent);
            $aut = $this->getAgentService()->computeAutorites($agent, $sup);
            $superieurs[$agent->getId()] = $sup;