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:
Jean-Philippe Lang
2014-02-07 07:57:59 +00:00
parent 09b95905dc
commit 7b127ee489
10 changed files with 59 additions and 12 deletions

View File

@@ -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