diff options
author | Go MAEDA <maeda@farend.jp> | 2020-02-29 06:42:00 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-02-29 06:42:00 +0000 |
commit | b9b841b23f274fe42edc2702ef058600ba6cc77c (patch) | |
tree | 9f199d794adf0cd5cd340048cb4b1dadca12478d /lib/plugins | |
parent | 3666bd7017b6cf74a4840102d1a9dcfa2653fecc (diff) | |
download | redmine-b9b841b23f274fe42edc2702ef058600ba6cc77c.tar.gz redmine-b9b841b23f274fe42edc2702ef058600ba6cc77c.zip |
Updating custom fields does not trigger update to "updated_on" field in the customized object (#5354).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19541 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb index 96fdbf8b6..73b2ae847 100644 --- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -146,6 +146,7 @@ module Redmine end self.custom_values = target_custom_values custom_values.each(&:save) + touch if !saved_changes? && custom_values.any?(&:saved_changes?) @custom_field_values_changed = false true end |