From cb4af51c01d5cab598841eaa830e109a2e175a79 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 10 Jan 2023 17:36:53 +0100 Subject: [PATCH] Sendmail: Fix issue loading old logs --- src/pretix/plugins/sendmail/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/sendmail/views.py b/src/pretix/plugins/sendmail/views.py index 602a21847..d80b92610 100644 --- a/src/pretix/plugins/sendmail/views.py +++ b/src/pretix/plugins/sendmail/views.py @@ -304,7 +304,7 @@ class OrderSendView(BaseSenderView): if 'recipients' in logentry.parsed_data: initial['recipients'] = logentry.parsed_data.get('recipients', 'orders') if 'sendto' in logentry.parsed_data: - initial['sendto'] = logentry.parsed_data.get('recipients', 'sendto') + initial['sendto'] = logentry.parsed_data.get('sendto') if 'items' in logentry.parsed_data: initial['items'] = self.request.event.items.filter( id__in=[a['id'] for a in logentry.parsed_data['items']]