From 2bfb8fe387a2408a57f6cdb9f3f2f72e622d689a Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 21 Aug 2024 15:13:18 +0200 Subject: [PATCH] Fix delete action for accompanying periods, missed in previous correction --- .../Controller/AccompanyingCourseController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php index 1b2362533..754be808a 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php @@ -109,11 +109,10 @@ final class AccompanyingCourseController extends \Symfony\Bundle\FrameworkBundle 'accompanying_period_id' => $accompanyingCourse->getId(), 'person_id' => $person_id, ])) - ->setMethod('DELETE') ->add('submit', SubmitType::class, ['label' => 'Delete']) ->getForm(); - if (Request::METHOD_DELETE === $request->getMethod()) { + if (Request::METHOD_POST === $request->getMethod()) { $form->handleRequest($request); if ($form->isValid()) {