From 0d0649dd3113858c930a8c442ac6b05cbca620f0 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 8 Sep 2025 14:51:54 +0200 Subject: [PATCH] Change route URL to avoid clash with person duplicate controller method --- .changes/unreleased/Fixed-20250908-144834.yaml | 6 ++++++ .../AccompanyingPeriodWorkDuplicateController.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixed-20250908-144834.yaml diff --git a/.changes/unreleased/Fixed-20250908-144834.yaml b/.changes/unreleased/Fixed-20250908-144834.yaml new file mode 100644 index 000000000..24e26dc6f --- /dev/null +++ b/.changes/unreleased/Fixed-20250908-144834.yaml @@ -0,0 +1,6 @@ +kind: Fixed +body: Change route URL to avoid clash with person duplicate controller method +time: 2025-09-08T14:48:34.682914221+02:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php index 84d5fea0b..db890cd4d 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php @@ -78,7 +78,7 @@ class AccompanyingPeriodWorkDuplicateController extends AbstractController * @ParamConverter("acpw1", options={"id": "acpw1_id"}) * @ParamConverter("acpw2", options={"id": "acpw2_id"}) */ - #[Route(path: '/{_locale}/person/{acpw1_id}/duplicate/{acpw2_id}/confirm', name: 'chill_person_acpw_duplicate_confirm')] + #[Route(path: '/{_locale}/person/{acpw1_id}/acpw-duplicate/{acpw2_id}/confirm', name: 'chill_person_acpw_duplicate_confirm')] public function confirmAction(AccompanyingPeriodWork $acpw1, AccompanyingPeriodWork $acpw2, Request $request) { $accompanyingPeriod = $acpw1->getAccompanyingPeriod();