summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-21 06:42:47 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-21 06:42:47 +0000
commitfde1e18b3aedda0a695bbd5212a82ab086cba441 (patch)
treeedf118773557e6e47c932b2ec9581f31bfa5ea4c /app
parent81e25404aacd0cfe0ecb9331e7edec4e76fd584d (diff)
downloadredmine-fde1e18b3aedda0a695bbd5212a82ab086cba441.tar.gz
redmine-fde1e18b3aedda0a695bbd5212a82ab086cba441.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/models/enumeration.rb2
1 files changed, 1 insertions, 1 deletions
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