Merged r17823 to 4.0-stable (#30465).

git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17824 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2019-01-19 14:42:56 +00:00
parent 371e9cb4f7
commit 6e54b4414c

View 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,