]> source.dussan.org Git - redmine.git/commitdiff
Merged r17823 to 4.0-stable (#30465).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Jan 2019 14:42:56 +0000 (14:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Jan 2019 14:42:56 +0000 (14:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17824 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb

index 72cc3033555bd1ff51f5dfa832b660d3a6bfa9bc..2e36d91be3218f6e780a7d9d0fb1696c06d122c7 100644 (file)
@@ -27,7 +27,7 @@ module Redmine
           return if self.included_modules.include?(Redmine::Acts::Customizable::InstanceMethods)
           cattr_accessor :customizable_options
           self.customizable_options = options
-          has_many :custom_values, lambda {includes(:custom_field).order("#{CustomField.table_name}.position")},
+          has_many :custom_values, lambda {includes(:custom_field)},
                                    :as => :customized,
                                    :inverse_of => :customized,
                                    :dependent => :delete_all,