Commit b0bb41ad authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: Issue custom fields "required" flag not stored (broken by r1090). Closes #715.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1171 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b935aebd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment