diff options
author | Go MAEDA <maeda@farend.jp> | 2020-02-11 04:06:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-02-11 04:06:25 +0000 |
commit | 89c4e1680766e1e5a3a11a857f17852cab3c2437 (patch) | |
tree | abda2dcc8e080c0b46fb8818b679a3a26836ceab /lib/plugins | |
parent | ad0ea14d681c50ff08ac6bc82ddf0ae465e9e832 (diff) | |
download | redmine-89c4e1680766e1e5a3a11a857f17852cab3c2437.tar.gz redmine-89c4e1680766e1e5a3a11a857f17852cab3c2437.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@19510 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 2 |
1 files changed, 2 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..3703a5e65 100644 --- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -145,7 +145,9 @@ module Redmine end end self.custom_values = target_custom_values + custom_values_changed = custom_values.any?(&:changed?) custom_values.each(&:save) + touch if persisted? && custom_values_changed @custom_field_values_changed = false true end |