1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-04 22:59:47 +00:00

Use a CustomFieldValue instead of CustomValue.

git-svn-id: http://svn.redmine.org/redmine/trunk@13774 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-12-20 13:51:34 +00:00
parent c6e8f537bd
commit b35ed2ea2b

View 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