1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-25 04:51:45 +00:00

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] if params[:continue]
redirect_to new_custom_field_path({:type => @custom_field.type}) redirect_to new_custom_field_path({:type => @custom_field.type})
else else
redirect_to edit_custom_field_path(@custom_field) redirect_to custom_fields_path({:tab => @custom_field.type})
end end
else else
render :action => 'new' render :action => 'new'

View File

@ -297,7 +297,7 @@ class CustomFieldsControllerTest < Redmine::ControllerTest
} }
} }
end end
assert_redirected_to "/custom_fields/#{field.id}/edit" assert_redirected_to "/custom_fields?tab=IssueCustomField"
assert_equal "test_post_new_list", field.name assert_equal "test_post_new_list", field.name
assert_equal ["0.1", "0.2"], field.possible_values assert_equal ["0.1", "0.2"], field.possible_values
assert_equal 1, field.trackers.size assert_equal 1, field.trackers.size