PDF Output: Fix AttributeError with undefined used meta data

This commit is contained in:
Raphael Michel
2017-09-25 10:20:46 +02:00
parent ab9dd32902
commit 62b2a367ff

View File

@@ -70,7 +70,7 @@ class PdfTicketOutput(BaseTicketOutput):
if o['content'] == 'other':
return o['text'].replace("\n", "<br/>\n")
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':
return order.code
elif o['content'] == 'item':