Commit 5eec3596 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

correction temporaire pour visibiltié offre de formation pegase (#67375)

parent 72bbf8b5
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for module/OffreFormation/src/Entity/NiveauEtape.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -155,8 +155,8 @@ class NiveauEtape
    {
        $this->etape      = $etape;
        $this->niv        = $this->etape->getNiveau();
        $this->lib        = $this->etape->getTypeFormation()->getGroupe()->getLibelleCourt();
        $this->pertinence = $this->etape->getTypeFormation()->getGroupe()->getPertinenceNiveau();
        $this->lib = $this->etape->getTypeFormation()->getGroupe()?->getLibelleCourt();
        $this->pertinence = $this->etape->getTypeFormation()->getGroupe()?->getPertinenceNiveau();

        return $this;
    }
+2 −2
Changes for module/OffreFormation/src/Service/OffreFormationService.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ class OffreFormationService extends AbstractEntityService
              OffreFormation\Entity\Db\Etape e
              JOIN e.structure s
              JOIN e.typeFormation tf
              JOIN tf.groupe gtf
              LEFT JOIN tf.groupe gtf
              LEFT JOIN e.elementPedagogique ep
              LEFT JOIN ep.structure epstr
              LEFT JOIN ep.volumeHoraireEns vme
@@ -101,7 +101,7 @@ class OffreFormationService extends AbstractEntityService
            if ($object instanceof Etape) {
                $n = NiveauEtape::getInstanceFromEtape($object);
                if ($object->estNonHistorise()) {
                    $gtf = $object->getTypeFormation()->getGroupe()->getPertinenceNiveau();
                    $gtf = $object->getTypeFormation()->getGroupe()?->getPertinenceNiveau();
                    if ($gtf) {
                        $niveaux[$n->getId()] = $n;
                    } else {