diff --git a/client/src/app/site/pages/meetings/modules/poll/base/base-poll-pdf.service.ts b/client/src/app/site/pages/meetings/modules/poll/base/base-poll-pdf.service.ts index 24a01298e4..2a8930baf0 100644 --- a/client/src/app/site/pages/meetings/modules/poll/base/base-poll-pdf.service.ts +++ b/client/src/app/site/pages/meetings/modules/poll/base/base-poll-pdf.service.ts @@ -396,7 +396,7 @@ export abstract class BasePollPdfService { margin: [0, 20, 0, 5], bold: true }); - const usersData = this.createUsersTable(exportInfo.entitledUsersData, poll.type); + const usersData = this.createUsersTable(exportInfo.entitledUsersData); pollResultPdfContent.push(usersData); } @@ -564,7 +564,8 @@ export abstract class BasePollPdfService { * @returns the table as pdfmake object */ private createVotesTable(votesData: BaseVoteData[], pollType: PollType): object { - const showVoteWeight: boolean = this.activeVoteWeight && pollType == PollType.Named; + const isAnonymised: boolean = votesData[0].user ? false : true; + const showVoteWeight: boolean = this.activeVoteWeight && pollType == PollType.Named && !isAnonymised; let pollTableBody: any[] = []; const pollTableHeader = [ { @@ -619,8 +620,8 @@ export abstract class BasePollPdfService { * * @returns the table as pdfmake object */ - private createUsersTable(usersData: EntitledUsersTableEntry[], pollType: PollType): object { - const showVoteWeight: boolean = this.activeVoteWeight && pollType == PollType.Named; + private createUsersTable(usersData: EntitledUsersTableEntry[]): object { + const showVoteWeight: boolean = this.activeVoteWeight; let pollTableBody: any[] = []; const pollTableHeader = [ { diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-polls/components/motion-poll-detail/motion-poll-detail.component.ts b/client/src/app/site/pages/meetings/pages/motions/pages/motion-polls/components/motion-poll-detail/motion-poll-detail.component.ts index ec2432b843..bfa9049d5b 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-polls/components/motion-poll-detail/motion-poll-detail.component.ts +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-polls/components/motion-poll-detail/motion-poll-detail.component.ts @@ -29,9 +29,7 @@ export class MotionPollDetailComponent extends BasePollDetailComponent (this.displayVoteWeight = data))); } protected createVotesData(): ExtendedVoteData[] {