mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
Redirect to custom field after create or update.
git-svn-id: http://svn.redmine.org/redmine/trunk@14746 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user