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

Correction macro agent en cas de BAP null

parent d3f18099
Loading
Loading
Loading
Loading
+3 −1
Changes for module/Application/src/Application/Entity/Db/MacroContent/AgentMacroTrait.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -96,7 +96,9 @@ trait AgentMacroTrait
        $texte  = "<ul>";
        foreach ($grades as $grade) {
            $texte .= "<li>";
            $texte .= $grade->getCorps()->getLibelleLong() . " ".($grade->getBap())?$grade->getBap()->getCategorie():"";
            $grade_libelle = $grade->getCorps()->getLibelleLong();
            $grade_bap = ($grade->getBap() !== null)?$grade->getBap()->getCategorie():"";
            $texte .= $grade_libelle . " ". $grade_bap;
            $texte .= " (";
            if($grade->getDateFin()) {
                $texte .= "du " . $grade->getDateDebut()->format('d/m/Y') . " au " . $grade->getDateFin()->format('d/m/Y');