summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 6be081b0b..990adf9e2 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -55,7 +55,7 @@ class CustomField < ActiveRecord::Base
end
# validate default value
- v = CustomValue.new(:custom_field => self.dup, :value => default_value, :customized => nil)
+ v = CustomValue.new(:custom_field => self.clone, :value => default_value, :customized => nil)
v.custom_field.is_required = false
errors.add(:default_value, :activerecord_error_invalid) unless v.valid?
end