diff options
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb index cfee2c5f9..1b366fa5a 100644 --- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -44,8 +44,7 @@ module Redmine end def available_custom_fields - CustomField.find(:all, :conditions => "type = '#{self.class.name}CustomField'", - :order => 'position') + CustomField.where("type = '#{self.class.name}CustomField'").sorted.all end # Sets the values of the object's custom fields |