Commit 9875d597 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Quickfix 'plan === null'

parent 8827b9ef
Loading
Loading
Loading
Loading
+1 −0
Changes for module/Formation/src/Formation/Controller/PlanDeFormationController.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -290,6 +290,7 @@ class PlanDeFormationController extends AbstractActionController
    public function importerDepuisCsvAction(): ViewModel
    {
        $plan = $this->getPlanDeFormationService()->getRequestedPlanDeFormation($this);
        if ($plan === null) $plan = new PlanDeFormation();

        $form = $this->getPlanDeFormationImportationForm();
        $form->setAttribute('action', $this->url()->fromRoute('plan-de-formation/importer', ['mode' => 'preview', 'path' => null], [], true));