]> source.dussan.org Git - redmine.git/commitdiff
Merged r16134 (#24283).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Jan 2017 20:56:28 +0000 (20:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Jan 2017 20:56:28 +0000 (20:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@16136 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/custom_field.rb

index 289d73ee90295eb3e5082c9866b2157b5ea3fff5..196d2c7ce994abe94a6e91d1c1811e8d408f561f 100644 (file)
@@ -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