From c87401ef5d24c7ea8b1002654bb26ad173437b24 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Thu, 6 Feb 2025 12:07:43 +0100 Subject: [PATCH] Widget: Prefill email_repeat with data-email attribute (Z#23181657) (#4813) --- src/pretix/presale/checkoutflow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pretix/presale/checkoutflow.py b/src/pretix/presale/checkoutflow.py index 3a1ea6ff2..5fce2b631 100644 --- a/src/pretix/presale/checkoutflow.py +++ b/src/pretix/presale/checkoutflow.py @@ -787,6 +787,10 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep): self.cart_session.get('email', '') or wd.get('email', '') ), + 'email_repeat': ( + self.cart_session.get('email_repeat', '') or + wd.get('email', '') + ), 'phone': self.cart_session.get('phone', '') or wd.get('phone', None) } initial.update(self.cart_session.get('contact_form_data', {}))