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