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