]> source.dussan.org Git - redmine.git/commitdiff
Do not keep illegitimate custom_values when setting custom_field_values (#7604).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Feb 2011 14:26:23 +0000 (14:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Feb 2011 14:26:23 +0000 (14:26 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4891 e93f8b46-1217-0410-a6f0-8f06a7374b81

vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb

index 9ed9fe3765b4ffc78b955b0fb9f350e78bdbc64f..b99c38c4b919fc4eccb69f2f14eaf4a9a89237ec 100644 (file)
@@ -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