mirror of
https://github.com/pretix/pretix.git
synced 2026-07-29 08:55:09 +00:00
Question form: Allow to unset required boolean questions (Z#23239887) (#6382)
Proper fix for #6366
This commit is contained in:
@@ -1121,7 +1121,7 @@ class BaseQuestionsForm(forms.Form):
|
||||
for q in question_cache.values():
|
||||
if q.required and q.type == Question.TYPE_BOOLEAN:
|
||||
if 'question_%d' % q.pk in d and d['question_%d' % q.pk] is False:
|
||||
del d['question_%d' % q.pk]
|
||||
d['question_%d' % q.pk] = None
|
||||
|
||||
return d
|
||||
|
||||
|
||||
Reference in New Issue
Block a user