mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix: phone being "None" or format not recognized in checkout (#2420)
This commit is contained in:
committed by
GitHub
parent
768bb8c106
commit
dd9429bbfa
@@ -709,8 +709,8 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
||||
if self.cart_customer:
|
||||
initial['email'] = self.cart_customer.email
|
||||
initial['email_repeat'] = self.cart_customer.email
|
||||
if not initial['phone']:
|
||||
initial['phone'] = str(self.cart_customer.phone)
|
||||
if not initial['phone'] and self.cart_customer.phone:
|
||||
initial['phone'] = self.cart_customer.phone
|
||||
|
||||
f = ContactForm(data=self.request.POST if self.request.method == "POST" else None,
|
||||
event=self.request.event,
|
||||
|
||||
Reference in New Issue
Block a user