From f2922018cec4ccb79ca2e5f0aa0695e129c53f78 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 2 Oct 2025 15:22:42 +0200 Subject: [PATCH] Fix variable name for correct routing --- src/Bundle/ChillEventBundle/Controller/EventController.php | 2 +- .../ChillEventBundle/Controller/ParticipationController.php | 4 ++-- .../Resources/views/Event/confirm_delete.html.twig | 2 +- .../ChillEventBundle/Resources/views/Event/list.html.twig | 2 +- .../Resources/views/Event/page_list.html.twig | 2 +- .../Resources/views/Participation/edit.html.twig | 2 +- .../Resources/views/Participation/new.html.twig | 2 +- src/Bundle/ChillMainBundle/Controller/ExportController.php | 1 - .../ChillMainBundle/Controller/SavedExportController.php | 6 +++--- src/Bundle/ChillMainBundle/Entity/Country.php | 1 - src/Bundle/ChillMainBundle/Entity/Scope.php | 1 - .../ChillPersonBundle/Entity/Person/ResidentialAddress.php | 1 - src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | 1 - 13 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/Bundle/ChillEventBundle/Controller/EventController.php b/src/Bundle/ChillEventBundle/Controller/EventController.php index 88788e9e4..780548aa1 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventController.php @@ -327,7 +327,7 @@ final class EventController extends AbstractController $this->addFlash('success', $this->translator->trans('The event was updated')); - return $this->redirectToRoute('chill_event__event_show', ['id' => $event_id]); + return $this->redirectToRoute('chill_event__event_show', ['event_id' => $event_id]); } return $this->render('@ChillEvent/Event/edit.html.twig', [ diff --git a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php index 70148bddd..e8ff1ea44 100644 --- a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php +++ b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php @@ -228,7 +228,7 @@ final class ParticipationController extends AbstractController } return $this->redirectToRoute('chill_event__event_show', [ - 'id' => $participation->getEvent()->getId(), + 'event_id' => $participation->getEvent()->getId(), ]); } @@ -442,7 +442,7 @@ final class ParticipationController extends AbstractController )); return $this->redirectToRoute('chill_event__event_show', [ - 'id' => $participation->getEvent()->getId(), + 'event_id' => $participation->getEvent()->getId(), ]); } diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/confirm_delete.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/confirm_delete.html.twig index a7666f149..a38d4aefe 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/confirm_delete.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/confirm_delete.html.twig @@ -12,7 +12,7 @@ 'title' : 'Delete event'|trans, 'confirm_question' : 'Are you sure you want to remove that event ?'|trans, 'cancel_route' : activeRouteKey, - 'cancel_parameters' : { 'id' : id }, + 'cancel_parameters' : { 'event_id' : id }, 'form' : delete_form } ) }} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig index b376050b4..4bdb1f0f8 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig @@ -34,7 +34,7 @@