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

Fix bug pas de niv2

parent aab2dd4d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -29,8 +29,10 @@ Voue êtes responsable de <?php echo count($agents); ?> agent·es.
            <td>
                <?php $affectations = $agent->getAffectationsActifs(); ?>
                <?php foreach ($affectations as $affectation) : ?>
                    <?php if ($affectation->getStructure()->getNiv2()) : ?>
                        <?php echo $affectation->getStructure()->getNiv2()->getLibelleCourt(); ?>
                        >
                    <?php endif; ?>
                    <?php echo $affectation->getStructure()->getLibelleLong(); ?>
                <?php if ($affectation->isPrincipale()) : ?>
                    <span class="badge" title="Affectation principale" style="background: seagreen">P</span>