From b35ed2ea2b21d7673f6706dd04166438b42bf046 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 20 Dec 2014 13:51:34 +0000 Subject: [PATCH] Use a CustomFieldValue instead of CustomValue. git-svn-id: http://svn.redmine.org/redmine/trunk@13774 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/custom_field.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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