diff options
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 4 |
1 files changed, 2 insertions, 2 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 9c4af77d4..6360e4e90 100644 --- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -92,12 +92,12 @@ module Redmine if field.multiple? values = custom_values.select { |v| v.custom_field == field } if values.empty? - values << custom_values.build(:customized => self, :custom_field => field, :value => nil) + values << custom_values.build(:customized => self, :custom_field => field) end x.value = values.map(&:value) else cv = custom_values.detect { |v| v.custom_field == field } - cv ||= custom_values.build(:customized => self, :custom_field => field, :value => nil) + cv ||= custom_values.build(:customized => self, :custom_field => field) x.value = cv.value end x.value_was = x.value.dup if x.value |