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

Fin du nettoyage des écoles doctorales

parent 4a221d84
Loading
Loading
Loading
Loading
+3 −40
Changes for module/Application/config/others/ecole-doctorale.config.php: 3 added lines, 40 removed lines.
Original line number Diff line number Diff line
@@ -90,9 +90,6 @@ return [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/supprimer/:structure',
                            'constraints' => [
                                'ecoleDoctorale' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'supprimer',
                            ],
@@ -102,9 +99,6 @@ return [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/restaurer/:structure',
                            'constraints' => [
                                'ecoleDoctorale' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'restaurer',
                            ],
@@ -114,46 +108,15 @@ return [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/modifier/:structure',
                            'constraints' => [
                                'ecoleDoctorale' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'modifier',
                            ],
                        ],
                    ],
                    'ajouter-individu' => [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/:ecoleDoctorale/ajouter-individu',
                            'constraints' => [
                                'ecoleDoctorale' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'ajouter-individu',
                            ],
                        ],
                    ],
                    'retirer-individu' => [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/:ecoleDoctorale/retirer-individu/:edi',
                            'constraints' => [
                                'ecoleDoctorale' => '\d+',
                                'edi' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'retirer-individu',
                            ],
                        ],
                    ],
                    'supprimer-logo' => [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/supprimer-logo/:ecoleDoctorale',
                            'constraints' => [
                                'ecoleDoctorale' => '\d+',
                            ],
                            'route'       => '/supprimer-logo/:structure',
                            'defaults'    => [
                                'action' => 'supprimer-logo',
                            ],
@@ -183,7 +146,7 @@ return [

                                        'withtarget' => true,
                                        'paramsInject' => [
                                            'ecoleDoctorale',
                                            'structure',
                                        ],
                                    ],
                                    'information' => [
@@ -193,7 +156,7 @@ return [

                                        'withtarget' => true,
                                        'paramsInject' => [
                                            'ecoleDoctorale',
                                            'structure',
                                        ],
                                    ],
                                ],
+2 −2
Changes for module/Application/src/Application/Controller/EcoleDoctoraleController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ class EcoleDoctoraleController extends AbstractController

    public function supprimerLogoAction()
    {
        $structureId = $this->params()->fromRoute("ecoleDoctorale");
        $structureId = $this->params()->fromRoute("structure");
        $this->supprimerLogoEcoleDoctorale();
        return $this->redirect()->toRoute('ecole-doctorale', [], ['query' => ['selected' => $structureId], "fragment" => $structureId], true);
    }
@@ -250,7 +250,7 @@ class EcoleDoctoraleController extends AbstractController
     */
    public function supprimerLogoEcoleDoctorale()
    {
        $ecoleId = $this->params()->fromRoute("ecoleDoctorale");
        $ecoleId = $this->params()->fromRoute("structure");
        $ecole  = $this->getEcoleDoctoraleService()->getRepository()->findByStructureId($ecoleId);

        $this->getEcoleDoctoraleService()->deleteLogo($ecole);