Skip to content

Commit

Permalink
[#1420] Fix group_show by taking schema out of the context when makin…
Browse files Browse the repository at this point in the history
…g sub-calls.
  • Loading branch information
David Read authored and amercader committed Jul 29, 2014
1 parent ebd7a05 commit c97cd22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -323,7 +323,8 @@ def pager_url(q=None, page=None):
'extras': search_extras
}

query = get_action('package_search')(context, data_dict)
context_ = dict((k, v) for (k, v) in context.items() if k != 'schema')
query = get_action('package_search')(context_, data_dict)

c.page = h.Page(
collection=query['results'],
Expand Down
3 changes: 2 additions & 1 deletion ckan/lib/dictization/model_dictize.py
Expand Up @@ -376,7 +376,8 @@ def group_dictize(group, context):
if include_datasets:
q['rows'] = 1000 # Only the first 1000 datasets are returned

search_results = logic.get_action('package_search')(context, q)
context_ = dict((k, v) for (k, v) in context.items() if k != 'schema')
search_results = logic.get_action('package_search')(context_, q)

if include_datasets:
result_dict['packages'] = search_results['results']
Expand Down

0 comments on commit c97cd22

Please sign in to comment.