From f017de1a21f009977649f12f3c13b39af228ba73 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 23 Aug 2023 12:18:30 +0200 Subject: [PATCH] Voucher bulk creation: Fix validation issue --- src/pretix/control/forms/vouchers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pretix/control/forms/vouchers.py b/src/pretix/control/forms/vouchers.py index f80a014e0..b315b0946 100644 --- a/src/pretix/control/forms/vouchers.py +++ b/src/pretix/control/forms/vouchers.py @@ -340,6 +340,9 @@ class VoucherBulkForm(VoucherForm): def clean_send_recipients(self): raw = self.cleaned_data['send_recipients'] + if self.cleaned_data.get('send', None) is False: + # No need to validate addresses if the section was turned off + return [] if not raw: return [] r = raw.split('\n')