Commit 15706ace authored by thepaeth's avatar thepaeth
Browse files

fix bug include sub organization

parent 2fde96fb
......@@ -146,6 +146,8 @@ class HierarchyDisplay(p.SingletonPlugin):
'organization:{}'.format(org_name)
for org_name in [c.group_dict.get('name')] +
children_names))
else:
query += ' AND (organization:{})'.format(c.group_dict.get('name'))
search_params['q'] = query.strip()
......@@ -155,6 +157,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'] = ''
check_include_children = {}
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