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
This commit is contained in:
Go MAEDA
2020-02-29 06:42:00 +00:00
parent 3666bd7017
commit b9b841b23f
2 changed files with 25 additions and 0 deletions

View File

@@ -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