@@ -84,7 +84,7 class GroupsController < ApplicationController | |||
|
84 | 84 | respond_to do |format| |
|
85 | 85 | if @group.save |
|
86 | 86 | flash[:notice] = l(:notice_successful_update) |
|
87 | format.html { redirect_to(groups_path) } | |
|
87 | format.html { redirect_to_referer_or(groups_path) } | |
|
88 | 88 | format.api { render_api_ok } |
|
89 | 89 | else |
|
90 | 90 | format.html { render :action => "edit" } |
@@ -97,7 +97,7 class GroupsController < ApplicationController | |||
|
97 | 97 | @group.destroy |
|
98 | 98 | |
|
99 | 99 | respond_to do |format| |
|
100 | format.html { redirect_to(groups_path) } | |
|
100 | format.html { redirect_to_referer_or(groups_path) } | |
|
101 | 101 | format.api { render_api_ok } |
|
102 | 102 | end |
|
103 | 103 | end |
General Comments 0
You need to be logged in to leave comments.
Login now