Feature #32783 ยป 32783.patch
| app/controllers/custom_fields_controller.rb | ||
|---|---|---|
| 51 | 51 |
if params[:continue] |
| 52 | 52 |
redirect_to new_custom_field_path({:type => @custom_field.type})
|
| 53 | 53 |
else |
| 54 |
redirect_to edit_custom_field_path(@custom_field)
|
|
| 54 |
redirect_to custom_fields_path({:tab => @custom_field.type})
|
|
| 55 | 55 |
end |
| 56 | 56 |
else |
| 57 | 57 |
render :action => 'new' |
| test/functional/custom_fields_controller_test.rb | ||
|---|---|---|
| 297 | 297 |
} |
| 298 | 298 |
} |
| 299 | 299 |
end |
| 300 |
assert_redirected_to "/custom_fields/#{field.id}/edit"
|
|
| 300 |
assert_redirected_to "/custom_fields?tab=IssueCustomField"
|
|
| 301 | 301 |
assert_equal "test_post_new_list", field.name |
| 302 | 302 |
assert_equal ["0.1", "0.2"], field.possible_values |
| 303 | 303 |
assert_equal 1, field.trackers.size |