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

Nom de famille ... + Filtrage des status avec le code de la structure chapeau

parent f344f2e8
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Application/Provider/Parametre/GlobalParametres.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -6,5 +6,5 @@ class GlobalParametres {
    const TYPE = "GLOBAL";
    const INSTALL_PATH = "INSTALL_PATH";
    const EMAIL_ASSISTANCE = "EMAIL_ASSISTANCE";
    const CODE_CHAPEAU = 'CODE_CHAPEAU';
    const CODE_UNIV = 'CODE_UNIV';
}
 No newline at end of file
+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
@@ -783,7 +783,7 @@ class AgentService {
    public function filtrerByStatutInvalide(Agent $agent, ?DateTime $date = null) : bool
    {
        try {
            $code = $this->getParametreService()->getValeurForParametre(GlobalParametres::TYPE, GlobalParametres::CODE_CHAPEAU);
            $code = $this->getParametreService()->getValeurForParametre(GlobalParametres::TYPE, GlobalParametres::CODE_UNIV);
        } catch (Exception $e) {
            $code = null;
        }