Fix name being used instead of email in CSV files

This commit is contained in:
Raphael Michel
2017-05-30 18:00:21 +02:00
parent 019d8220b8
commit 43f4803da7

View File

@@ -110,7 +110,7 @@ class CSVCheckinList(BaseCheckinList):
if form_data['secrets']:
row.append(op.secret)
if self.event.settings.attendee_emails_asked:
row.append(op.attendee_email or (op.addon_to.attendee_name if op.addon_to else ''))
row.append(op.attendee_email or (op.addon_to.attendee_email if op.addon_to else ''))
acache = {}
for a in op.answers.all():
acache[a.question_id] = str(a)