mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Do not require invoice address name if invoice address is not required
This commit is contained in:
@@ -369,7 +369,8 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
|||||||
messages.warning(request, _('Please enter your invoicing address.'))
|
messages.warning(request, _('Please enter your invoicing address.'))
|
||||||
return False
|
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.'))
|
messages.warning(request, _('Please enter your name.'))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user