mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix #2192 -- Invoice address name-field always gets overwritten with customer profile
This commit is contained in:
@@ -768,7 +768,7 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
||||
wd_initial = {}
|
||||
initial = dict(wd_initial)
|
||||
|
||||
if self.cart_customer:
|
||||
if self.cart_customer and not self.invoice_address.pk:
|
||||
initial.update({
|
||||
'name_parts': self.cart_customer.name_parts
|
||||
})
|
||||
@@ -779,7 +779,8 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
||||
override_sets = self._contact_override_sets
|
||||
for overrides in override_sets:
|
||||
initial.update({
|
||||
k: v['initial'] for k, v in overrides.items() if 'initial' in v
|
||||
k: v['initial'] for k, v in overrides.items()
|
||||
if 'initial' in v and (v['disabled'] or not self.invoice_address.pk)
|
||||
})
|
||||
|
||||
if not self.address_asked and self.request.event.settings.invoice_name_required:
|
||||
|
||||
Reference in New Issue
Block a user