mirror of
https://github.com/pretix/pretix.git
synced 2026-09-13 16:14:40 +00:00
add safe fallback for attendee_name_parts being None
This commit is contained in:
@@ -551,7 +551,7 @@ def get_variables(event):
|
|||||||
v['attendee_name_for_salutation'] = {
|
v['attendee_name_for_salutation'] = {
|
||||||
'label': _("Attendee name for salutation"),
|
'label': _("Attendee name for salutation"),
|
||||||
'editor_sample': _("Mr Doe"),
|
'editor_sample': _("Mr Doe"),
|
||||||
'evaluate': lambda op, order, ev: concatenation_for_salutation(op.attendee_name_parts)
|
'evaluate': lambda op, order, ev: concatenation_for_salutation(op.attendee_name_parts or {})
|
||||||
}
|
}
|
||||||
|
|
||||||
for key, label, weight in scheme['fields']:
|
for key, label, weight in scheme['fields']:
|
||||||
|
|||||||
Reference in New Issue
Block a user