From fde1e18b3aedda0a695bbd5212a82ab086cba441 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 21 Dec 2021 06:42:47 +0000 Subject: Saving time tracking activities without any change may turn a system activity into a project activity (#36318). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21319 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/enumeration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 5f0e023ed..534d8239e 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -117,7 +117,7 @@ class Enumeration < ActiveRecord::Base # Does the +new+ Hash have the same custom values as the previous Enumeration? def self.same_custom_values?(new, previous) previous.custom_field_values.each do |custom_value| - if custom_value.value != new["custom_field_values"][custom_value.custom_field_id.to_s] + if custom_value.to_s != new["custom_field_values"][custom_value.custom_field_id.to_s].to_s return false end end -- cgit v1.2.3