]> source.dussan.org Git - redmine.git/commitdiff
Use a CustomFieldValue instead of CustomValue.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Dec 2014 13:51:34 +0000 (13:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Dec 2014 13:51:34 +0000 (13:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13774 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/custom_field.rb

index 0c9ad61f7aca5b20116cc58c63439d96b87c42c3..761e30c5f5cee7619f58d0b1c6ef1caf9329dd2c 100644 (file)
@@ -249,7 +249,7 @@ class CustomField < ActiveRecord::Base
 
   # Returns the error messages for the default custom field value
   def validate_field_value(value)
-    validate_custom_value(CustomValue.new(:custom_field => self, :value => value))
+    validate_custom_value(CustomFieldValue.new(:custom_field => self, :value => value))
   end
 
   # Returns true if value is a valid value for the custom field