##// END OF EJS Templates
Merged r16134 (#24283)....
Jean-Philippe Lang -
r15753:01e985eb0ada
parent child
Show More
@@ -31,7 +31,7 class CustomField < ActiveRecord::Base
31 31 validates_presence_of :name, :field_format
32 32 validates_uniqueness_of :name, :scope => :type
33 33 validates_length_of :name, :maximum => 30
34 validates_length_of :regexp, maximum: 30
34 validates_length_of :regexp, maximum: 255
35 35 validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats }
36 36 validate :validate_custom_field
37 37 attr_protected :id
General Comments 0
You need to be logged in to leave comments. Login now