Skip to content

Commit

Permalink
add return before redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Mar 20, 2018
1 parent ecb404b commit fdc6b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/views/group.py
Expand Up @@ -551,7 +551,7 @@ def history(id):
_('Select two revisions before doing the comparison.')
else:
params['diff_entity'] = 'group'
h.redirect_to(controller='revision', action='diff', **params)
return h.redirect_to(controller='revision', action='diff', **params)

context = {
'model': model,
Expand Down Expand Up @@ -1040,7 +1040,7 @@ def post(self, id=None):
base.abort(404, _('Group not found'))
except ValidationError as e:
h.flash_error(e.error_dict['message'])
h.redirect_to('organization.read', id=id)
return h.redirect_to('organization.read', id=id)
return _redirect_to_this_controller(action='index')

def get(self, id=None):
Expand Down

0 comments on commit fdc6b19

Please sign in to comment.