Commit 4afe20bf authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction pour afficher bon libellé sur la fiche de service lors...

Correction pour afficher bon libellé sur la fiche de service lors d'enseignement hors établissement.
parent 7675fcf1
Loading
Loading
Loading
Loading
Loading
+10 −1
Changes for data/Etats de sortie/export_services.php: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -45,9 +45,18 @@ foreach ($data as $d) {
    }

    if (!isset($transData['intervenants'][$iid]['services'][$sid])) {
        if ($d['TYPE_FORMATION_LIBELLE']) {
            $typeFormation = $d['TYPE_FORMATION_LIBELLE'];
        } else {
            if ($d['FONCTION_REFERENTIEL_LIBELLE']) {
                $typeFormation = "Référentiel";
            } else {
                $typeFormation = "Hors établissment";
            }
        }
        $transData['intervenants'][$iid]['services'][$sid] = [
            'composante'     => $d['SERVICE_STRUCTURE_ENS_LIBELLE'],
            'type_formation' => $d['TYPE_FORMATION_LIBELLE'] ?: 'Référentiel',
            'type_formation' => $typeFormation,
            'formation'      => $d['ETAPE_LIBELLE'] ? $d['ETAPE_LIBELLE'] : $d['ETABLISSEMENT_LIBELLE'],
            'enseignement'   => $d['ELEMENT_LIBELLE'] ? $d['ELEMENT_LIBELLE'] : $d['FONCTION_REFERENTIEL_LIBELLE'],
            'fi'             => 0,