diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-20 14:26:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-20 14:26:23 +0000 |
commit | e29b99c67e44041ab68e1397c2bf49462f319465 (patch) | |
tree | 4e705583375b43366a67e80927c3486a2e7bed76 /vendor/plugins/acts_as_customizable | |
parent | 490ad9eeb80057e97da74b1a1031c42d2af0413c (diff) | |
download | redmine-e29b99c67e44041ab68e1397c2bf49462f319465.tar.gz redmine-e29b99c67e44041ab68e1397c2bf49462f319465.zip |
Do not keep illegitimate custom_values when setting custom_field_values (#7604).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4891 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins/acts_as_customizable')
-rw-r--r-- | vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb index 9ed9fe376..b99c38c4b 100644 --- a/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -71,6 +71,7 @@ module Redmine custom_field_values.each do |custom_value| custom_value.value = values[custom_value.custom_field_id.to_s] if values.has_key?(custom_value.custom_field_id.to_s) end if values.is_a?(Hash) + self.custom_values = custom_field_values end def custom_field_values |