Commit 1c83627f authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction #45084

parent 948a59ca
Loading
Loading
Loading
Loading
+2 −1
Changes for module/Indicateur/src/Controller/IndicateurController.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -162,7 +162,8 @@ class IndicateurController extends AbstractController
                'annee-id'                => 'Année universitaire',
                'statut-libelle'          => 'Statut de l\'intervenant',
                'prioritaire'             => 'Prioritaire',
                'intervenant-code'        => 'Code RH',
                'intervenant-code-rh'     => 'Code RH',
                'intervenant-code'        => 'Code',
                'intervenant-prenom'      => 'Prénom',
                'intervenant-nom'         => 'Nom usuel',
                'intervenant-email-perso' => 'Email personnel',
+3 −6
Changes for module/Indicateur/src/Service/IndicateurService.php: 3 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -30,14 +30,13 @@ class IndicateurService extends AbstractService
    protected function getViewDef(int $numero, Annee $annee): string
    {
        $view = 'V_INDICATEUR_' . $numero;
        $sql     = "SELECT TEXT FROM USER_VIEWS WHERE VIEW_NAME = :view";
        $sql = "SELECT text FROM user_views WHERE view_name = :view";
        $viewDef = $this->getEntityManager()->getConnection()->fetchAssociative($sql, compact('view'))['TEXT'];

        return $viewDef;
    }



    protected function fetchData(Indicateur $indicateur, ?Structure $structure = null, bool $onlyCount = true): array
    {
        $numero = $indicateur->getNumero();
@@ -61,7 +60,8 @@ class IndicateurService extends AbstractService
            i.annee_id                 \"annee-id\",
            si.libelle                 \"statut-libelle\",
            si.prioritaire_indicateurs \"prioritaire\",
            i.code_rh                  \"intervenant-code\",
            i.code_rh                  \"intervenant-code-rh\",
            i.code                     \"intervenant-code\",
            i.prenom                   \"intervenant-prenom\",
            i.nom_usuel                \"intervenant-nom\",
            i.email_perso              \"intervenant-email-perso\",
@@ -94,7 +94,6 @@ class IndicateurService extends AbstractService
    }



    /**
     * @param integer|Indicateur $indicateur Indicateur concerné
     */
@@ -106,7 +105,6 @@ class IndicateurService extends AbstractService
    }



    /**
     * @param Indicateur $indicateur Indicateur concerné
     *
@@ -173,7 +171,6 @@ class IndicateurService extends AbstractService
    }



    public function getCsv(Indicateur $indicateur): array
    {
        $data = $this->fetchData($indicateur, null, false);
+8 −1
Changes for module/Indicateur/view/indicateur/indicateur/result.phtml: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
            unset($supCols['structure-libelle']);
            unset($supCols['prioritaire']);
            unset($supCols['intervenant-code']);
            unset($supCols['intervenant-code-rh']);
            unset($supCols['intervenant-prenom']);
            unset($supCols['intervenant-nom']);
            unset($supCols['intervenant-email-pro']);
@@ -85,7 +86,13 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
                            <td><?php printValue($r['structure-libelle']); ?></td>
                            <td>
                                <a href="<?= $this->url($indicateur->getRoute(), ['intervenant' => $intervenantId]) ?>">
                                    <?= $r['intervenant-nom'] . ' ' . $r['intervenant-prenom'] . ' <small>(n°' . $r['intervenant-code'] . ' / ' . $r['statut-libelle'] . ')</small>' ?>
                                    <?php
                                    if (!empty($r['intervenant-code-rh'])) {
                                        echo $r['intervenant-nom'] . ' ' . $r['intervenant-prenom'] . " <small>(n°" . $r['intervenant-code-rh'] . ' / ' . $r['statut-libelle'] . ")</small>";
                                    } else {
                                        echo $r['intervenant-nom'] . ' ' . $r['intervenant-prenom'] . " <small>(" . $r['statut-libelle'] . ")</small>";
                                    }
                                    ?>
                                </a>
                            </td>
                            <?php foreach ($supCols as $supCol): ?>