]> source.dussan.org Git - redmine.git/commitdiff
Removed deprecated Object#type in CustomFieldsController.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Aug 2007 14:24:04 +0000 (14:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Aug 2007 14:24:04 +0000 (14:24 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@615 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/custom_fields_controller.rb

index 7fddcbae7b4f39f726d37718cd6b5b5915fd802b..782de66a1a97f209bd1a40d8d7566f7192804de0 100644 (file)
@@ -25,7 +25,7 @@ class CustomFieldsController < ApplicationController
   end
 
   def list
-    @custom_fields_by_type = CustomField.find(:all).group_by {|f| f.type.to_s }
+    @custom_fields_by_type = CustomField.find(:all).group_by {|f| f.class.name }
     @tab = params[:tab] || 'IssueCustomField'
     render :action => "list", :layout => false if request.xhr?
   end