mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fixed a bug that lead to invoice information not being editable if
nothing else is editable in an order
This commit is contained in:
@@ -218,10 +218,13 @@ class Order(LoggedModel):
|
|||||||
modify_deadline = self.event.settings.get('last_order_modification_date', as_type=datetime)
|
modify_deadline = self.event.settings.get('last_order_modification_date', as_type=datetime)
|
||||||
if modify_deadline is not None and now() > modify_deadline:
|
if modify_deadline is not None and now() > modify_deadline:
|
||||||
return False
|
return False
|
||||||
|
if self.event.settings.get('invoice_address_asked', as_type=bool):
|
||||||
|
return True
|
||||||
ask_names = self.event.settings.get('attendee_names_asked', as_type=bool)
|
ask_names = self.event.settings.get('attendee_names_asked', as_type=bool)
|
||||||
for cp in self.positions.all().prefetch_related('item__questions'):
|
for cp in self.positions.all().prefetch_related('item__questions'):
|
||||||
if (cp.item.admission and ask_names) or cp.item.questions.all():
|
if (cp.item.admission and ask_names) or cp.item.questions.all():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False # nothing there to modify
|
return False # nothing there to modify
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user