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
This commit is contained in:
Jean-Philippe Lang 2011-02-20 14:26:23 +00:00
parent 490ad9eeb8
commit e29b99c67e
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ module Redmine
custom_field_values.each do |custom_value| 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) 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) end if values.is_a?(Hash)
self.custom_values = custom_field_values
end end
def custom_field_values def custom_field_values