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

Réparation bouton pour créer un entretien depuis la gestion

parent 7ee89a39
Loading
Loading
Loading
Loading
+4 −0
Changes for module/Application/src/Application/Controller/EntretienProfessionnelController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -92,7 +92,11 @@ class EntretienProfessionnelController extends AbstractActionController

        /** @var EntretienProfessionnelForm $form */
        $form = $this->getEntretienProfessionnelForm();
        if ($campagne !== null) {
            $form->setAttribute('action', $this->url()->fromRoute('entretien-professionnel/creer', ["campagne" => $campagne->getId()], ["query" => ["agent" => $agentId, "structure" => $structureId]], true));
        } else {
            $form->setAttribute('action', $this->url()->fromRoute('entretien-professionnel/creer', [], ["query" => ["agent" => $agentId, "structure" => $structureId]], true));
        }
        $form->bind($entretien);

        if ($structure !== null) {