From bf1081071b3ae142b31f8f7fff501a6ae2739504 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Fri, 9 Feb 2024 10:10:45 +0100 Subject: [PATCH] CheckinlistPDF: Export attendee company based on op; fallback to IA (Z#23144201) (#3869) Co-authored-by: Richard Schreiber --- src/pretix/plugins/checkinlists/exporters.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pretix/plugins/checkinlists/exporters.py b/src/pretix/plugins/checkinlists/exporters.py index 529ab7bd9..85b3d695f 100644 --- a/src/pretix/plugins/checkinlists/exporters.py +++ b/src/pretix/plugins/checkinlists/exporters.py @@ -382,8 +382,11 @@ class PDFCheckinList(ReportlabExportMixin, CheckInListMixin, BaseExporter): iac = "" name = op.attendee_name or (op.addon_to.attendee_name if op.addon_to else '') or ian - if iac: - name += "
" + iac + company = op.company or (op.addon_to.company if op.addon_to else '') or iac + if company: + if name: + name += "
" + name += company item = "{} ({})".format( str(op.item) + (" – " + str(op.variation.value) if op.variation else ""),