diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-30 05:27:52 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-30 05:27:52 +0000 |
commit | 47a71c80113eac70ac94dcc8d8eb3c9860e47959 (patch) | |
tree | 95a5663bf848341cb691890be725553aae3d22c4 /app/models/custom_field.rb | |
parent | 10bb12e09f81dcc56f7a11342b841b9b7cf8d53e (diff) | |
download | redmine-47a71c80113eac70ac94dcc8d8eb3c9860e47959.tar.gz redmine-47a71c80113eac70ac94dcc8d8eb3c9860e47959.zip |
Reverts r19478 (#32897).
git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r-- | app/models/custom_field.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 5fee33bdd..1802702bd 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -32,7 +32,7 @@ class CustomField < ActiveRecord::Base store :format_store validates_presence_of :name, :field_format - validates_uniqueness_of :name, :scope => :type, :case_sensitive => false + validates_uniqueness_of :name, :scope => :type validates_length_of :name, :maximum => 30 validates_length_of :regexp, maximum: 255 validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats } |