Unverified Commit 72357749 authored by Zoran Pandovski's avatar Zoran Pandovski Committed by GitHub
Browse files

Merge pull request #2 from eHealthAfrica/support-2.8

fix for 2.8
parents 72b6dfdd d7e99ce4
......@@ -73,7 +73,8 @@ class HierarchyDisplay(p.SingletonPlugin):
# the children organizations in the result list
def before_search(self, search_params):
''' If include children selected the query string is modified '''
if not hasattr('c', 'fields'):
return search_params
def _children_name_list(children):
name_list = []
......@@ -101,7 +102,7 @@ class HierarchyDisplay(p.SingletonPlugin):
for item in query.split(' '):
field = item.split(':')[0]
value = item.split(':')[-1]
# skip organization
# skip organization
if (field == 'owner_org'):
org_id = value
continue
......
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