diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-22 17:48:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-22 17:48:37 +0000 |
commit | b0bb41ad355771d4ae4704585f29bc12ae6c345d (patch) | |
tree | 859e8a0aeb4f364aaef27e29f6bdb848d187d8d7 /app | |
parent | b935aebd99369a9c8e848f9d346be56e02c57c4b (diff) | |
download | redmine-b0bb41ad355771d4ae4704585f29bc12ae6c345d.tar.gz redmine-b0bb41ad355771d4ae4704585f29bc12ae6c345d.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/custom_field.rb | 2 |
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 |