Commit d02a78e4 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

#47771

parent 2470668f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -37,7 +37,12 @@ class EtapeController extends AbstractController
            Structure::class,
        ]);

        $structure = $this->em()->find(Structure::class, $this->params()->fromRoute('structure'));
        $structureId = $this->params()->fromRoute('structure');
        if ($structureId) {
            $structure = $this->em()->find(Structure::class, $structureId);
        } else {
            $structure = null;
        }
        $etape = $this->getEvent()->getParam('etape');

        $title  = $etape ? "Modification d'une formation" : "Création d'une nouvelle formation";