Skip to content

Commit

Permalink
Use None in package_show instead context
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Bazykin committed Feb 23, 2017
1 parent 1c2a057 commit 47b0122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/package.py
Expand Up @@ -1041,7 +1041,7 @@ def resource_delete(self, id, resource_id):
if request.method == 'POST':
get_action('resource_delete')(context, {'id': resource_id})
h.flash_notice(_('Resource has been deleted.'))
pkg_dict = get_action('package_show')(context, {'id': id})
pkg_dict = get_action('package_show')(None, {'id': id})
if pkg_dict['state'].startswith('draft'):
h.redirect_to(controller='package', action='new_resource',
id=id)
Expand Down

0 comments on commit 47b0122

Please sign in to comment.