Loading module/Application/src/Application/Controller/AgentController.php +1 −1 Original line number Diff line number Diff line Loading @@ -130,7 +130,7 @@ class AgentController extends AbstractActionController //Récupération des status $agentStatuts = $this->getAgentStatutService()->getAgentStatutsByAgent($agent); $agentAffectations = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent,true,false,false); $agentAffectations = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent); $agentGrades = $this->getAgentGradeService()->getAgentGradesByAgent($agent); //Récupération des supérieures et autorités Loading module/Application/src/Application/Service/Agent/AgentService.php +2 −2 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ class AgentService { if (!empty($liste)) return $liste; //checking structure $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, true, true, false); $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent); if (count($affectationsPrincipales) !== 1) return []; //throw new LogicException("Plusieurs affectations principales pour l'agent ".$agent->getId() . ":".$agent->getDenomination()); $structure = $affectationsPrincipales[0]->getStructure(); Loading Loading @@ -394,7 +394,7 @@ class AgentService { if ($superieurs === null) $superieurs = $this->computeSuperieures($agent, $date); //checking structure $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, true, true, false); $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent); $structure = null; if (count($affectationsPrincipales) === 1) { $structure = $affectationsPrincipales[0]->getStructure()->getNiv2(); Loading Loading
module/Application/src/Application/Controller/AgentController.php +1 −1 Original line number Diff line number Diff line Loading @@ -130,7 +130,7 @@ class AgentController extends AbstractActionController //Récupération des status $agentStatuts = $this->getAgentStatutService()->getAgentStatutsByAgent($agent); $agentAffectations = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent,true,false,false); $agentAffectations = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent); $agentGrades = $this->getAgentGradeService()->getAgentGradesByAgent($agent); //Récupération des supérieures et autorités Loading
module/Application/src/Application/Service/Agent/AgentService.php +2 −2 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ class AgentService { if (!empty($liste)) return $liste; //checking structure $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, true, true, false); $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent); if (count($affectationsPrincipales) !== 1) return []; //throw new LogicException("Plusieurs affectations principales pour l'agent ".$agent->getId() . ":".$agent->getDenomination()); $structure = $affectationsPrincipales[0]->getStructure(); Loading Loading @@ -394,7 +394,7 @@ class AgentService { if ($superieurs === null) $superieurs = $this->computeSuperieures($agent, $date); //checking structure $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, true, true, false); $affectationsPrincipales = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent); $structure = null; if (count($affectationsPrincipales) === 1) { $structure = $affectationsPrincipales[0]->getStructure()->getNiv2(); Loading