Merged r14985 (#21535).

git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15023 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-01-09 09:14:51 +00:00
parent fd39037b50
commit 18d0e40711
3 changed files with 41 additions and 2 deletions

View File

@@ -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 edit_custom_field_path(@custom_field)
redirect_back_or_default edit_custom_field_path(@custom_field)
else
render :action => 'edit'
end