forked from CGM_Public/pretix_original
Fix marking invoices transmitted for emails with uppercase letters (#5885)
This commit is contained in:
@@ -519,6 +519,7 @@ def mail_send_task(self, **kwargs) -> bool:
|
|||||||
)
|
)
|
||||||
except InvoiceAddress.DoesNotExist:
|
except InvoiceAddress.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
|
expected_recipients = {e.lower() for e in expected_recipients if e}
|
||||||
if any(t in expected_recipients for t in outgoing_mail.to):
|
if any(t in expected_recipients for t in outgoing_mail.to):
|
||||||
invoices_to_mark_transmitted.append(inv)
|
invoices_to_mark_transmitted.append(inv)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user