summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-25 08:37:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-25 08:37:54 +0000
commita3efaceb8fd9e0aa10bd5601662b77a34ea462e5 (patch)
tree915e7c3879c0052e478a1a0664b8000bba414cdb /app
parent2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc (diff)
downloadredmine-a3efaceb8fd9e0aa10bd5601662b77a34ea462e5.tar.gz
redmine-a3efaceb8fd9e0aa10bd5601662b77a34ea462e5.zip
Redirect to custom field after create or update.
git-svn-id: http://svn.redmine.org/redmine/trunk@14746 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/custom_fields_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb
index f6f830247..169e93c29 100644
--- a/app/controllers/custom_fields_controller.rb
+++ b/app/controllers/custom_fields_controller.rb
@@ -43,7 +43,7 @@ class CustomFieldsController < ApplicationController
if @custom_field.save
flash[:notice] = l(:notice_successful_create)
call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
- redirect_to custom_fields_path(:tab => @custom_field.class.name)
+ redirect_to edit_custom_field_path(@custom_field)
else
render :action => 'new'
end
@@ -56,7 +56,7 @@ class CustomFieldsController < ApplicationController
if @custom_field.update_attributes(params[:custom_field])
flash[:notice] = l(:notice_successful_update)
call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field)
- redirect_to custom_fields_path(:tab => @custom_field.class.name)
+ redirect_to edit_custom_field_path(@custom_field)
else
render :action => 'edit'
end