Question form: Allow to unset required boolean questions (Z#23239887)

Proper fix for #6366
This commit is contained in:
Raphael Michel
2026-07-14 15:03:14 +02:00
parent ffca102a8a
commit 8e4cb6848c
+1 -1
View File
@@ -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