Skip to content

Commit

Permalink
Fix tags on org/group read pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Bazykin committed Feb 24, 2017
1 parent 28c68ab commit 363619b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -270,8 +270,9 @@ def drill_down_url(**by):
c.drill_down_url = drill_down_url

def remove_field(key, value=None, replace=None):
controller = lookup_group_controller(group_type)
return h.remove_url_param(key, value=value, replace=replace,
controller='group', action='read',
controller=controller, action='read',
extras=dict(id=c.group_dict.get('name')))

c.remove_field = remove_field
Expand All @@ -283,13 +284,18 @@ def pager_url(q=None, page=None):

try:
c.fields = []
c.fields_grouped = {}
search_extras = {}
for (param, value) in request.params.items():
if param not in ['q', 'page', 'sort'] \
and len(value) and not param.startswith('_'):
if not param.startswith('ext_'):
c.fields.append((param, value))
q += ' %s: "%s"' % (param, value)
if param not in c.fields_grouped:
c.fields_grouped[param] = [value]
else:
c.fields_grouped[param].append(value)
else:
search_extras[param] = value

Expand Down

0 comments on commit 363619b

Please sign in to comment.