From 27990b3fbb4e40e4e3ca9685773f66df1172c336 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 13 Mar 2019 17:10:23 +0100 Subject: [PATCH] Prevent users from setting up dependencies for check-in questions --- src/pretix/control/forms/item.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/control/forms/item.py b/src/pretix/control/forms/item.py index 4292f532ea..b267c303c9 100644 --- a/src/pretix/control/forms/item.py +++ b/src/pretix/control/forms/item.py @@ -68,6 +68,8 @@ class QuestionForm(I18nModelForm): d = super().clean() if d.get('dependency_question') and not d.get('dependency_value'): raise ValidationError({'dependency_value': [_('This field is required')]}) + if d.get('dependency_question') and d.get('ask_during_checkin'): + raise ValidationError(_('Dependencies between questions are not supported during check-in.')) return d class Meta: