Loading module/Application/config/others/ecole-doctorale.config.php +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 Loading @@ -90,9 +90,6 @@ return [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer/:structure', 'constraints' => [ 'ecoleDoctorale' => '\d+', ], 'defaults' => [ 'action' => 'supprimer', ], Loading @@ -102,9 +99,6 @@ return [ 'type' => Segment::class, 'options' => [ 'route' => '/restaurer/:structure', 'constraints' => [ 'ecoleDoctorale' => '\d+', ], 'defaults' => [ 'action' => 'restaurer', ], Loading @@ -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', ], Loading Loading @@ -183,7 +146,7 @@ return [ 'withtarget' => true, 'paramsInject' => [ 'ecoleDoctorale', 'structure', ], ], 'information' => [ Loading @@ -193,7 +156,7 @@ return [ 'withtarget' => true, 'paramsInject' => [ 'ecoleDoctorale', 'structure', ], ], ], Loading module/Application/src/Application/Controller/EcoleDoctoraleController.php +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 Loading @@ -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); } Loading @@ -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); Loading Loading
module/Application/config/others/ecole-doctorale.config.php +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 Loading @@ -90,9 +90,6 @@ return [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer/:structure', 'constraints' => [ 'ecoleDoctorale' => '\d+', ], 'defaults' => [ 'action' => 'supprimer', ], Loading @@ -102,9 +99,6 @@ return [ 'type' => Segment::class, 'options' => [ 'route' => '/restaurer/:structure', 'constraints' => [ 'ecoleDoctorale' => '\d+', ], 'defaults' => [ 'action' => 'restaurer', ], Loading @@ -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', ], Loading Loading @@ -183,7 +146,7 @@ return [ 'withtarget' => true, 'paramsInject' => [ 'ecoleDoctorale', 'structure', ], ], 'information' => [ Loading @@ -193,7 +156,7 @@ return [ 'withtarget' => true, 'paramsInject' => [ 'ecoleDoctorale', 'structure', ], ], ], Loading
module/Application/src/Application/Controller/EcoleDoctoraleController.php +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 Loading @@ -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); } Loading @@ -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); Loading