Browse Source

DIV-849: adding crash guard

pull/160/head
Benard Ebinu 7 years ago
parent
commit
0c2ade2e66
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      edivorce/apps/core/templatetags/summary_format.py

+ 1
- 1
edivorce/apps/core/templatetags/summary_format.py View File

@ -182,7 +182,7 @@ def format_children(context, source):
item = list(filter(lambda x: x['question_id'] == question, working_source))
# skip child support order related questions if user did not select that option
if question in child_support_orders:
if question in child_support_orders and len(item):
item = item.pop()
if context['derived']['wants_child_support'] is True:
# make sure free form text is reformted to be bullet list.


Loading…
Cancel
Save