From da207757e2ee1b73203c243d355de68107ed64cf Mon Sep 17 00:00:00 2001
From: Antony Le Courtes <antony.lecourtes@unicaen.fr>
Date: Mon, 11 Oct 2021 14:21:16 +0200
Subject: [PATCH] Affichage du grade et de la discipline sur la fiche de
 l'intervenant (#39603)

---
 .../View/Helper/Intervenant/IntervenantViewHelper.php           | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php
index ea3c8148e5..f99b38028a 100755
--- a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php
+++ b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php
@@ -75,6 +75,8 @@ class IntervenantViewHelper extends AbstractHtmlElement
                 "N° {$entity->getSource()}" => $entity->getCode(),
                 "N° RH"                     => ($entity->getCodeRh()) ? $entity->getCodeRh() : '<span class="inconnu">(Inconnue)</span>',
                 "Affectation principale"    => $entity->getStructure() ?: '<span class="inconnu">(Inconnue)</span>',
+                "Grade"                     => $entity->getGrade() ?: '<span class="inconnu">(Inconnue)</span>',
+                "Discipline"                => (!empty($entity->getDiscipline()) && $entity->getDiscipline() != '00 Non renseignée') ? $entity->getDiscipline() : '<span class="inconnu">(Inconnue)</span>',
                 "Modifié le"                => $entity->getHistoModification()->format(Constants::DATE_FORMAT),
             ],
             'divers'      => [
-- 
GitLab