From 3202f666b6c1899504537bb03ad48255d90d0dbb Mon Sep 17 00:00:00 2001 From: Phin Wolkwitz Date: Fri, 7 Aug 2026 14:58:21 +0200 Subject: [PATCH] Fix erroneous else statement --- src/pretix/plugins/sendmail/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pretix/plugins/sendmail/models.py b/src/pretix/plugins/sendmail/models.py index 3a11fcad65..3d6ba9caaa 100644 --- a/src/pretix/plugins/sendmail/models.py +++ b/src/pretix/plugins/sendmail/models.py @@ -207,11 +207,8 @@ class ScheduledMail(models.Model): if not p.attendee_email: if p.addon_to_id in sent_to_positions: continue - elif parent_op.attendee_email: - p = parent_op else: - # without parent-op-email it should have already been sent to the order-email when parent-op was handled - continue + p = parent_op # with attendee-email but same as parent's and sent to parent elif parent_op.attendee_email and p.attendee_email == parent_op.attendee_email and parent_op in sent_to_positions: continue