1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Deadlock when assigning custom values (#30465).

Patch by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@17823 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2019-01-19 11:57:19 +00:00
parent 14e79c86ff
commit 53ea8dd979

View File

@ -27,7 +27,7 @@ module Redmine
return if self.included_modules.include?(Redmine::Acts::Customizable::InstanceMethods) return if self.included_modules.include?(Redmine::Acts::Customizable::InstanceMethods)
cattr_accessor :customizable_options cattr_accessor :customizable_options
self.customizable_options = 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, :as => :customized,
:inverse_of => :customized, :inverse_of => :customized,
:dependent => :delete_all, :dependent => :delete_all,