diff options
Diffstat (limited to 'vendor/plugins')
-rw-r--r-- | vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb index 10ba12341..a09dffbb5 100644 --- a/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -31,7 +31,7 @@ module Redmine :include => :custom_field, :order => "#{CustomField.table_name}.position", :dependent => :delete_all - before_validation_on_create { |customized| customized.custom_field_values } + before_validation { |customized| customized.custom_field_values if customized.new_record? } # Trigger validation only if custom values were changed validates_associated :custom_values, :on => :update, :if => Proc.new { |customized| customized.custom_field_values_changed? } send :include, Redmine::Acts::Customizable::InstanceMethods |