Skip to content

Commit

Permalink
[#4031] Improve search in group read and bulk page
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Feb 22, 2018
1 parent 534b7b1 commit a54c906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/controllers/group.py
Expand Up @@ -238,9 +238,9 @@ def _read(self, id, limit, group_type):
q = c.q = request.params.get('q', '')
# Search within group
if c.group_dict.get('is_organization'):
q += ' owner_org:"%s"' % c.group_dict.get('id')
fq = 'owner_org:"%s"' % c.group_dict.get('id')
else:
q += ' groups:"%s"' % c.group_dict.get('name')
fq = 'groups:"%s"' % c.group_dict.get('name')

c.description_formatted = \
h.render_markdown(c.group_dict.get('description'))
Expand Down Expand Up @@ -321,7 +321,7 @@ def pager_url(q=None, page=None):

data_dict = {
'q': q,
'fq': '',
'fq': fq,
'include_private': True,
'facet.field': facets.keys(),
'rows': limit,
Expand Down

0 comments on commit a54c906

Please sign in to comment.