Redirect to index page instead of edit page after creating a new custom field (#32783).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19749 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-05-04 00:46:50 +00:00
parent c8a58674cf
commit fd1d89827e
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ class CustomFieldsController < ApplicationController
if params[:continue]
redirect_to new_custom_field_path({:type => @custom_field.type})
else
redirect_to edit_custom_field_path(@custom_field)
redirect_to custom_fields_path({:tab => @custom_field.type})
end
else
render :action => 'new'