Commit 76ed0fe2 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Bug appel Form

parent 29a6fadd
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ class TypeInterventionController extends AbstractController
    use ContextServiceAwareTrait;



    public function indexAction()
    {
        $this->em()->getFilters()->enable('historique')->init([
@@ -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();
@@ -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');
    }
}