From 629ad4ec1f535f15af125177bae69fb1714f2006 Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 27 Nov 2020 17:09:33 +0100 Subject: [PATCH] Consider show-seq-number config during pdf export If not stated in the export dialog, the sequential motion number will not be printed in the PDF if the config option is unset --- client/src/app/site/motions/services/motion-pdf.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/motions/services/motion-pdf.service.ts b/client/src/app/site/motions/services/motion-pdf.service.ts index 346d65167..e8b09b300 100644 --- a/client/src/app/site/motions/services/motion-pdf.service.ts +++ b/client/src/app/site/motions/services/motion-pdf.service.ts @@ -115,7 +115,8 @@ export class MotionPdfService { } const title = this.createTitle(motion, crMode, lineLength); - const sequential = !infoToExport || infoToExport.includes('id'); + const sequential = + infoToExport?.includes('id') ?? this.configService.instant('motions_show_sequential_numbers'); const subtitle = this.createSubtitle(motion, sequential); motionPdfContent = [title, subtitle];