From 92bf6feb8e930f599b82c253e6be92222b6ac9b8 Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Mon, 30 Oct 2023 11:43:02 +0100 Subject: [PATCH 1/2] Fix a problem in the poll service An array is an reference type and can be changed. So copy the array helps. --- .../modules/assignment-poll/services/assignment-poll.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/services/assignment-poll.service.ts b/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/services/assignment-poll.service.ts index 289f171c2e..7663a82bec 100644 --- a/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/services/assignment-poll.service.ts +++ b/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/services/assignment-poll.service.ts @@ -76,7 +76,7 @@ export class AssignmentPollService extends PollService { const poll: Partial = { title: this.translate.instant(`Ballot`), onehundred_percent_base: this.defaultPercentBase, - entitled_group_ids: this.defaultGroupIds, + entitled_group_ids: Object.values(this.defaultGroupIds), pollmethod: this.defaultPollMethod, type: this.isElectronicVotingEnabled ? this.defaultPollType : PollType.Analog }; From a3ed741591182003d01e90b00b1c8c0e301757de Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Wed, 1 Nov 2023 10:21:02 +0100 Subject: [PATCH 2/2] Add the fix to the two other poll services --- .../topics/modules/topic-poll/services/topic-poll.service.ts | 2 +- .../services/motion-poll.service/motion-poll.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/site/pages/meetings/pages/agenda/modules/topics/modules/topic-poll/services/topic-poll.service.ts b/client/src/app/site/pages/meetings/pages/agenda/modules/topics/modules/topic-poll/services/topic-poll.service.ts index c1db0e3124..ffa79660f3 100644 --- a/client/src/app/site/pages/meetings/pages/agenda/modules/topics/modules/topic-poll/services/topic-poll.service.ts +++ b/client/src/app/site/pages/meetings/pages/agenda/modules/topics/modules/topic-poll/services/topic-poll.service.ts @@ -75,7 +75,7 @@ export class TopicPollService extends PollService { const poll: Partial = { title: this.translate.instant(`Vote`), onehundred_percent_base: this.defaultPercentBase, - entitled_group_ids: this.defaultGroupIds, + entitled_group_ids: Object.values(this.defaultGroupIds), pollmethod: this.defaultPollMethod, type: this.defaultPollType, backend: PollBackendDurationType.FAST diff --git a/client/src/app/site/pages/meetings/pages/motions/modules/motion-poll/services/motion-poll.service/motion-poll.service.ts b/client/src/app/site/pages/meetings/pages/motions/modules/motion-poll/services/motion-poll.service/motion-poll.service.ts index c4f5156d1a..a58880ceb8 100644 --- a/client/src/app/site/pages/meetings/pages/motions/modules/motion-poll/services/motion-poll.service/motion-poll.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/modules/motion-poll/services/motion-poll.service/motion-poll.service.ts @@ -65,7 +65,7 @@ export class MotionPollService extends PollService { const poll: Partial = { title: this.translate.instant(`Vote`), onehundred_percent_base: this.defaultPercentBase, - entitled_group_ids: this.defaultGroupIds, + entitled_group_ids: Object.values(this.defaultGroupIds), type: this.isElectronicVotingEnabled ? this.defaultPollType : PollType.Analog, pollmethod: PollMethod.YNA };