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();