Skip to content

Commit

Permalink
[#1251] fix preview
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Nov 4, 2013
1 parent a9d2c1e commit 7f138ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/controllers/package.py
Expand Up @@ -1502,6 +1502,7 @@ def edit_view(self, id, resource_id, view_id=None):
abort(401, _('Unauthorized to view View %s') % view_id)

view_type = view_type or request.GET.get('view_type')
data['view_type'] = view_type
view_plugin = datapreview.get_view_plugin(view_type)
if not view_plugin:
abort(404, _('View Type Not found'))
Expand Down

0 comments on commit 7f138ef

Please sign in to comment.