Fix crash when re-using logged emails

Fix PRETIXEU-16Q
This commit is contained in:
Raphael Michel
2019-06-21 12:01:31 +02:00
parent 93cca34eab
commit 23031642bd

View File

@@ -40,7 +40,7 @@ class SenderView(EventPermissionRequiredMixin, FormView):
action_type='pretix.plugins.sendmail.sent'
)
kwargs['initial'] = {
'recipients': logentry.parsed_data('recipients', 'orders'),
'recipients': logentry.parsed_data.get('recipients', 'orders'),
'message': LazyI18nString(logentry.parsed_data['message']),
'subject': LazyI18nString(logentry.parsed_data['subject']),
'sendto': logentry.parsed_data['sendto'],