Skip to content
This repository was archived by the owner on Sep 3, 2019. It is now read-only.

Commit df3b1ea

Browse files
committed
Fixing case where negative condition is being evaluated for skipped question
1 parent 3233f93 commit df3b1ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

questionnaire/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,8 @@ def dep_check(expr, runinfo, answerdict):
991991
if check_answer.startswith(">"):
992992
return actual_answer > check_value
993993
if check_answer.startswith("!"):
994+
if actual_answer == '':
995+
return False
994996
return check_answer[1:].strip() != actual_answer.strip()
995997
return check_answer.strip() == actual_answer.strip()
996998

0 commit comments

Comments
 (0)