Unverified Commit dbc0c9a0 authored by David Read's avatar David Read Committed by GitHub
Browse files

Merge pull request #30 from eHealthAfrica/master

Fix 2.8 CKAN issue
parents 4ecbee51 72357749
......@@ -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