From 01e985eb0adaf5d624ce5a0ead7838758fd59e0d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 4 Jan 2017 20:56:22 +0000 Subject: [PATCH] Merged r16134 (#24283). git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16135 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 20f3e7b85..fe39b628f 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -31,7 +31,7 @@ class CustomField < ActiveRecord::Base validates_presence_of :name, :field_format validates_uniqueness_of :name, :scope => :type validates_length_of :name, :maximum => 30 - validates_length_of :regexp, maximum: 30 + validates_length_of :regexp, maximum: 255 validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats } validate :validate_custom_field attr_protected :id -- 2.39.5