From 3f55c694b89d450f53531a7a2f070aef3f1f88e2 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 17 Mar 2018 22:10:16 +0100 Subject: [PATCH] Do not require invoice address name if invoice address is not required --- src/pretix/presale/checkoutflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/presale/checkoutflow.py b/src/pretix/presale/checkoutflow.py index fbf1640224..f7db2e0fe3 100644 --- a/src/pretix/presale/checkoutflow.py +++ b/src/pretix/presale/checkoutflow.py @@ -369,7 +369,8 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep): messages.warning(request, _('Please enter your invoicing address.')) return False - if request.event.settings.invoice_name_required and (not self.invoice_address or not self.invoice_address.name): + if request.event.settings.invoice_address_asked and request.event.settings.invoice_name_required and ( + not self.invoice_address or not self.invoice_address.name): messages.warning(request, _('Please enter your name.')) return False