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

Correction ajout de doctorant + clarification index

parent 65fa3755
Loading
Loading
Loading
Loading
+4
Changes for module/Formation/src/Formation/Controller/InscriptionController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -56,7 +56,11 @@ class InscriptionController extends AbstractController
        $session = $this->getEntityManager()->getRepository(Session::class)->getRequestedSession($this);
        /** @var Doctorant|null $doctorant */
        $doctorantId = $this->params()->fromRoute('doctorant');
        if ($doctorantId !== null) {
            $doctorant = $this->getEntityManager()->getRepository(Doctorant::class)->find($doctorantId);
        } else {
            $doctorant = null;
        }

        if ($doctorant !== null) {
            $inscription = new Inscription();