Skip to content

Commit

Permalink
Merge branch 'ckylape-keyerror-fix-2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Magán committed Sep 3, 2015
2 parents 22f49c8 + a3c46e5 commit 2f62371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/datarequests/controllers/ui_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _return_page(errors={}, errors_summary={}):
# belongs to the organization are shown)
organization_id = c.datarequest.get('organization_id', '')
if organization_id:
base_datasets = tk.get_action('organization_show')({'ignore_auth': True}, {'id': organization_id})['packages']
base_datasets = tk.get_action('organization_show')({'ignore_auth': True}, {'id': organization_id, 'include_datasets': True})['packages']
else:
# FIXME: At this time, only the 500 last modified/created datasets are retrieved.
# We assume that a user will close their data request with a recently added or modified dataset
Expand Down
2 changes: 1 addition & 1 deletion ckanext/datarequests/tests/test_ui_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def _get_action(action):
datarequest_show.assert_called_once_with(self.expected_context, {'id': datarequest_id})

if organization:
organization_show.assert_called_once_with({'ignore_auth': True}, {'id': organization})
organization_show.assert_called_once_with({'ignore_auth': True}, {'id': organization, 'include_datasets': True})
else:
package_search.assert_called_once_with({'ignore_auth': True}, {'rows': 500})

Expand Down

0 comments on commit 2f62371

Please sign in to comment.