From: Jean-Philippe Lang Date: Sat, 20 Dec 2014 13:51:34 +0000 (+0000) Subject: Use a CustomFieldValue instead of CustomValue. X-Git-Tag: 3.0.0~214 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b35ed2ea2b21d7673f6706dd04166438b42bf046;p=redmine.git Use a CustomFieldValue instead of CustomValue. git-svn-id: http://svn.redmine.org/redmine/trunk@13774 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 0c9ad61f7..761e30c5f 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -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