Merge pull request #5730 from emanuelschuetze/motionPollTitle

Show motion poll title in motion pdf
This commit is contained in:
Emanuel Schütze 2020-11-26 12:05:33 +01:00 committed by GitHub
commit fbed661dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 29 deletions

View File

@ -370,13 +370,12 @@ export class MotionPdfService {
// voting results
if (motion.polls.length && (!infoToExport || infoToExport.includes('polls'))) {
const column1 = [];
const column2 = [];
const column3 = [];
motion.polls.forEach(poll => {
if (poll.hasVotes) {
const tableData = this.motionPollService.generateTableData(poll);
const column1 = [];
const column2 = [];
const column3 = [];
tableData.forEach(votingResult => {
const votingOption = this.translate.instant(
this.pollKeyVerbose.transform(votingResult.votingOption)
@ -397,11 +396,9 @@ export class MotionPdfService {
}
column3.push(resultValue);
});
}
});
metaTableBody.push([
{
text: `${this.translate.instant('Voting result')}:`,
text: poll.title,
style: 'boldText'
},
{
@ -425,6 +422,8 @@ export class MotionPdfService {
}
]);
}
});
}
// summary of change recommendations (for motion diff version only)
const changes = this.getUnifiedChanges(motion, lineLength);