Commit 6b4989fe authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Erreur typage

parent 63b0da7e
Loading
Loading
Loading
Loading
+1 −1
Changes for module/OffreFormation/src/Controller/OffreFormationController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ class OffreFormationController extends \Application\Controller\AbstractControlle
        $etape = $this->context()->etapeFromQuery();
        if ($etape) $etape = $this->getServiceEtape()->get($etape->getId()); // entité Niveau
        if ($niveau) $niveau = $this->getServiceNiveauEtape()->get($niveau); // entité Niveau
        if ($structure) $structure = $this->getServiceStructure()->get($structure);
        if ($structure && !$structure instanceof \Lieu\Entity\Db\Structure) $structure = $this->getServiceStructure()->get($structure);

        return [$structure, $niveau, $etape];
    }