Commit 2fde96fb authored by thepaeth's avatar thepaeth
Browse files

update c.include_children_selected

parent 1dda3fd6
......@@ -100,6 +100,7 @@ class HierarchyDisplay(p.SingletonPlugin):
# e.g. search_params['q'] = u' owner_org:"id" include_children: "True"'
query = search_params.get('q')
fq = search_params.get('fq')
check_include_children = dict(c.fields)
# Fix the issues with multiple times repeated fields
# Remove the param from the fields - NB no longer works
......@@ -111,8 +112,9 @@ class HierarchyDisplay(p.SingletonPlugin):
c.fields = list(new_fields)
# parse the query string to check if children are requested
c.include_children_selected = query and \
'include_children: "True"' in query
#c.include_children_selected = query and \
# 'include_children: "True"' in query
c.include_children_selected = check_include_children.get("include_children") == "True"
if c.include_children_selected:
......@@ -152,6 +154,7 @@ class HierarchyDisplay(p.SingletonPlugin):
# remove include_children from the filter-list - we have a checkbox
del c.fields_grouped['include_children']
search_params['fq'] = ''
return search_params
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment