Loading module/Application/src/Controller/TypeInterventionController.php +3 −4 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ class TypeInterventionController extends AbstractController use ContextServiceAwareTrait; public function indexAction() { $this->em()->getFilters()->enable('historique')->init([ Loading Loading @@ -65,7 +64,7 @@ class TypeInterventionController extends AbstractController /* @var $typeIntervention TypeIntervention */ $typeIntervention = $this->getEvent()->getParam('typeIntervention'); $form = $this->getFormTypeInterventionSaisie(); $form = $this->getFormTypeInterventionTypeInterventionSaisie(); if (empty($typeIntervention)) { $title = 'Création d\'un nouveau type d\'intervention'; $typeIntervention = $this->getServiceTypeIntervention()->newEntity(); Loading Loading @@ -225,8 +224,8 @@ class TypeInterventionController extends AbstractController $this->getServiceTypeInterventionStatut()->delete($tis); $this->redirect()->toRoute('type-intervention/statut', ['typeIntervention' => $ti->getId()]); // redirection vers la page parent en cas de succès $this->flashMessenger()->addSuccessMessage('Suppression effectuée'); }); return compact('form', 'title'); } } Loading
module/Application/src/Controller/TypeInterventionController.php +3 −4 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ class TypeInterventionController extends AbstractController use ContextServiceAwareTrait; public function indexAction() { $this->em()->getFilters()->enable('historique')->init([ Loading Loading @@ -65,7 +64,7 @@ class TypeInterventionController extends AbstractController /* @var $typeIntervention TypeIntervention */ $typeIntervention = $this->getEvent()->getParam('typeIntervention'); $form = $this->getFormTypeInterventionSaisie(); $form = $this->getFormTypeInterventionTypeInterventionSaisie(); if (empty($typeIntervention)) { $title = 'Création d\'un nouveau type d\'intervention'; $typeIntervention = $this->getServiceTypeIntervention()->newEntity(); Loading Loading @@ -225,8 +224,8 @@ class TypeInterventionController extends AbstractController $this->getServiceTypeInterventionStatut()->delete($tis); $this->redirect()->toRoute('type-intervention/statut', ['typeIntervention' => $ti->getId()]); // redirection vers la page parent en cas de succès $this->flashMessenger()->addSuccessMessage('Suppression effectuée'); }); return compact('form', 'title'); } }