Browse Source

Redirect to referer to preserve pagination and filter.

git-svn-id: http://svn.redmine.org/redmine/trunk@15758 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 years ago
parent
commit
f435d1844d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/controllers/groups_controller.rb

+ 2
- 2
app/controllers/groups_controller.rb View File

respond_to do |format| respond_to do |format|
if @group.save if @group.save
flash[:notice] = l(:notice_successful_update) 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 } format.api { render_api_ok }
else else
format.html { render :action => "edit" } format.html { render :action => "edit" }
@group.destroy @group.destroy


respond_to do |format| respond_to do |format|
format.html { redirect_to(groups_path) }
format.html { redirect_to_referer_or(groups_path) }
format.api { render_api_ok } format.api { render_api_ok }
end end
end end

Loading…
Cancel
Save