Browse Source

DIV-290 - ignore leading and trailing spaces when determining step completeness

pull/160/head
Mike Olund 8 years ago
parent
commit
abcc8bcf74
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      edivorce/apps/core/utils/user_response.py

+ 2
- 2
edivorce/apps/core/utils/user_response.py View File

@ -83,7 +83,7 @@ def is_complete(step, lst):
for question in lst:
q_id = question['question_id']
value = question['value']
if value != '[]' and value != '':
if value != '[]' and value.strip() != '':
if q_id in required_list:
required_list.remove(q_id)
elif q_id in conditional_list:
@ -95,7 +95,7 @@ def is_complete(step, lst):
# print("H: %s, V: %s|" %(hidden_q_id, key['value']))
if hidden_q_id == 'other_name_you' and not json.loads(key['value'])[0][1]:
break
elif not key['value']:
elif not key['value'] or key['value'].strip() == '':
break
else:
key_in_list = True


Loading…
Cancel
Save