Commit 1265bf5c authored by jplang's avatar jplang

Redirect to referer to preserve pagination and filter.

git-svn-id: https://svn.redmine.org/redmine/trunk@15758 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3cec10d3
......@@ -84,7 +84,7 @@ class GroupsController < ApplicationController
respond_to do |format|
if @group.save
flash[:notice] = l(:notice_successful_update)
format.html { redirect_to(groups_path) }
format.html { redirect_to_referer_or(groups_path) }
format.api { render_api_ok }
else
format.html { render :action => "edit" }
......@@ -97,7 +97,7 @@ class GroupsController < ApplicationController
@group.destroy
respond_to do |format|
format.html { redirect_to(groups_path) }
format.html { redirect_to_referer_or(groups_path) }
format.api { render_api_ok }
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment