mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Hotfix crash PRETIXEU-C0F
This commit is contained in:
@@ -3410,7 +3410,7 @@ class InvoiceAddress(models.Model):
|
|||||||
'internal_reference': self.internal_reference,
|
'internal_reference': self.internal_reference,
|
||||||
'beneficiary': self.beneficiary,
|
'beneficiary': self.beneficiary,
|
||||||
'transmission_type': self.transmission_type,
|
'transmission_type': self.transmission_type,
|
||||||
**self.transmission_info,
|
**(self.transmission_info or {}),
|
||||||
})
|
})
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
|
|||||||
(i.invoice_to_transmission_info or {}).get("transmission_email_address") or i.order.email,
|
(i.invoice_to_transmission_info or {}).get("transmission_email_address") or i.order.email,
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
expected_recipients.append(order.invoice_address.transmission_info.get("transmission_email_address") or i.order.email)
|
expected_recipients.append((order.invoice_address.transmission_info or {}).get("transmission_email_address") or i.order.email)
|
||||||
except InvoiceAddress.DoesNotExist:
|
except InvoiceAddress.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
if not any(t in expected_recipients for t in to):
|
if not any(t in expected_recipients for t in to):
|
||||||
|
|||||||
@@ -1144,7 +1144,7 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
|||||||
"_state_for_address": a.state_for_address,
|
"_state_for_address": a.state_for_address,
|
||||||
"_name": a.name,
|
"_name": a.name,
|
||||||
"is_business": "business" if a.is_business else "individual",
|
"is_business": "business" if a.is_business else "individual",
|
||||||
**a.transmission_info,
|
**(a.transmission_info or {}),
|
||||||
}
|
}
|
||||||
if a.name_parts:
|
if a.name_parts:
|
||||||
name_parts = a.name_parts
|
name_parts = a.name_parts
|
||||||
|
|||||||
Reference in New Issue
Block a user