mirror of
https://github.com/pretix/pretix.git
synced 2026-08-26 13:14:40 +00:00
PDF Output: Fix AttributeError with undefined used meta data
This commit is contained in:
@@ -70,7 +70,7 @@ class PdfTicketOutput(BaseTicketOutput):
|
|||||||
if o['content'] == 'other':
|
if o['content'] == 'other':
|
||||||
return o['text'].replace("\n", "<br/>\n")
|
return o['text'].replace("\n", "<br/>\n")
|
||||||
elif o['content'].startswith('meta:'):
|
elif o['content'].startswith('meta:'):
|
||||||
return ev.meta_data.get(o['content'][5:])
|
return ev.meta_data.get(o['content'][5:]) or ''
|
||||||
elif o['content'] == 'order':
|
elif o['content'] == 'order':
|
||||||
return order.code
|
return order.code
|
||||||
elif o['content'] == 'item':
|
elif o['content'] == 'item':
|
||||||
|
|||||||
Reference in New Issue
Block a user