forked from CGM_Public/pretix_original
Fix inconsistent handling of all_optional
This commit is contained in:
@@ -927,6 +927,7 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep):
|
|||||||
(not q.dependency_question_id or question_is_visible(q.dependency_question_id, q.dependency_values))
|
(not q.dependency_question_id or question_is_visible(q.dependency_question_id, q.dependency_values))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not self.all_optional:
|
||||||
for q in cp.item.questions_to_ask:
|
for q in cp.item.questions_to_ask:
|
||||||
if question_is_required(q) and q.id not in answ:
|
if question_is_required(q) and q.id not in answ:
|
||||||
if warn:
|
if warn:
|
||||||
|
|||||||
Reference in New Issue
Block a user