mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Questions step: Only prefill customer name for first ticket (#2555)
This commit is contained in:
@@ -735,9 +735,9 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
||||
|
||||
return f
|
||||
|
||||
def get_question_override_sets(self, cart_position):
|
||||
def get_question_override_sets(self, cart_position, index):
|
||||
o = []
|
||||
if self.cart_customer:
|
||||
if self.cart_customer and index == 0:
|
||||
o.append({
|
||||
'attendee_name_parts': {
|
||||
'initial': self.cart_customer.name_parts
|
||||
|
||||
@@ -729,7 +729,7 @@ class OrderModify(EventViewMixin, OrderDetailMixin, OrderQuestionsViewMixin, Tem
|
||||
return []
|
||||
return super().positions
|
||||
|
||||
def get_question_override_sets(self, order_position):
|
||||
def get_question_override_sets(self, order_position, index):
|
||||
override_sets = [
|
||||
resp for recv, resp in question_form_fields_overrides.send(
|
||||
self.request.event,
|
||||
|
||||
Reference in New Issue
Block a user