From 3635f6fb0cb28ba1cb1c2d099a75c526c88fb2fe Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 9 Sep 2026 14:06:41 +0200 Subject: [PATCH] Widget: Add data-fix equivalent for attendee data (Z#23202714) (#6533) * Widget: Add data-fix equivalent for attendee data (Z#23202714) * Update src/pretix/presale/checkoutflow.py Co-authored-by: Richard Schreiber * Update src/pretix/presale/checkoutflow.py Co-authored-by: Richard Schreiber * Update src/pretix/presale/checkoutflow.py Co-authored-by: Richard Schreiber --------- Co-authored-by: Richard Schreiber --- src/pretix/presale/checkoutflow.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/pretix/presale/checkoutflow.py b/src/pretix/presale/checkoutflow.py index 3d8df897d..8c9bab79f 100644 --- a/src/pretix/presale/checkoutflow.py +++ b/src/pretix/presale/checkoutflow.py @@ -873,6 +873,28 @@ class QuestionsStep(CartQuestionsViewMixin, CartMixin, TemplateFlowStep): 'attendee_name_parts': d }) + wd = self.cart_session.get('widget_data', {}) + if wd.get('attendee-fix', '') == 'true': + for k, v in wd.items(): + if v and k.startswith('attendee-name'): + o.append({ + 'attendee_name_parts': { + 'disabled': True, + } + }) + elif v and k.startswith('email'): + o.append({ + 'attendee_email': { + 'disabled': True, + } + }) + elif v and k.startswith('question-'): + o.append({ + k[9:].upper(): { + 'disabled': True, + } + }) + return o @cached_property