From 04375d4fcf84176dd91565c24379ef2a595d700f Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 6 Sep 2021 19:32:15 +0200 Subject: [PATCH] Fix voucher form validation (Z#2384192) --- src/pretix/control/forms/vouchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/forms/vouchers.py b/src/pretix/control/forms/vouchers.py index 36c02eabb3..936f58f1ee 100644 --- a/src/pretix/control/forms/vouchers.py +++ b/src/pretix/control/forms/vouchers.py @@ -206,7 +206,7 @@ class VoucherForm(I18nModelForm): seats_given=data.get('seat') or data.get('seats'), block_quota=data.get('block_quota') ) - if not self.instance.show_hidden_items and ( + if not data.get('show_hidden_items') and ( (self.instance.quota and all(i.hide_without_voucher for i in self.instance.quota.items.all())) or (self.instance.item and self.instance.item.hide_without_voucher) ):