From 2b903c4d6e6adf25d289e4e4baffa1afcffa1892 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 11 Jan 2024 11:55:03 +0100 Subject: [PATCH 1/2] Use the correct id_seq to explicitly assign id to new row in accompanying period participation table --- .../PersonMoveAccompanyingPeriodParticipationHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveAccompanyingPeriodParticipationHandler.php b/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveAccompanyingPeriodParticipationHandler.php index 2c342a9a5..3cff98292 100644 --- a/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveAccompanyingPeriodParticipationHandler.php +++ b/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveAccompanyingPeriodParticipationHandler.php @@ -26,7 +26,7 @@ class PersonMoveAccompanyingPeriodParticipationHandler implements PersonMoveSqlH { $insertSql = sprintf(<<<'SQL' INSERT INTO chill_person_accompanying_period_participation (person_id, accompanyingperiod_id, id, startdate, enddate) - SELECT %d, accompanyingperiod_id, nextval('chill_person_accompanying_period_id_seq'), startdate, enddate + SELECT %d, accompanyingperiod_id, nextval('chill_person_accompanying_period_participation_id_seq'), startdate, enddate FROM chill_person_accompanying_period_participation cpapp WHERE person_id = %d AND NOT EXISTS ( From db130ef9df629da50a171450fff8da7e362e1348 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 11 Jan 2024 11:59:21 +0100 Subject: [PATCH 2/2] add changie --- .changes/unreleased/Fixed-20240111-115909.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/Fixed-20240111-115909.yaml diff --git a/.changes/unreleased/Fixed-20240111-115909.yaml b/.changes/unreleased/Fixed-20240111-115909.yaml new file mode 100644 index 000000000..b5e78c73b --- /dev/null +++ b/.changes/unreleased/Fixed-20240111-115909.yaml @@ -0,0 +1,6 @@ +kind: Fixed +body: Fix the id_seq used when creating a new accompanying period participation during + fusion of two person files +time: 2024-01-11T11:59:09.581242964+01:00 +custom: + Issue: ""