mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
Show tabs for existing custom field types only and adds a view for choosing the type when adding a new custom field.
git-svn-id: http://svn.redmine.org/redmine/trunk@12849 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -77,7 +77,7 @@ class CustomFieldsController < ApplicationController
|
||||
def build_new_custom_field
|
||||
@custom_field = CustomField.new_subclass_instance(params[:type], params[:custom_field])
|
||||
if @custom_field.nil?
|
||||
render_404
|
||||
render :action => 'select_type'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user