diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-25 14:37:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-25 14:37:44 +0000 |
commit | 2042e3bbd9bbd2206a0abe7f00a856ca02c37b50 (patch) | |
tree | 37753c84fa269830f54c01923f6af7068b583fef /app/models | |
parent | d93f96765b6fc386cb5565985d02d9f6e71895c5 (diff) | |
download | redmine-2042e3bbd9bbd2206a0abe7f00a856ca02c37b50.tar.gz redmine-2042e3bbd9bbd2206a0abe7f00a856ca02c37b50.zip |
Dots allowed in custom field name (#1723).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1760 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-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 704fbe010..4759b714b 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -32,7 +32,7 @@ class CustomField < ActiveRecord::Base validates_presence_of :name, :field_format validates_uniqueness_of :name, :scope => :type validates_length_of :name, :maximum => 30 - validates_format_of :name, :with => /^[\w\s\'\-]*$/i + validates_format_of :name, :with => /^[\w\s\.\'\-]*$/i validates_inclusion_of :field_format, :in => FIELD_FORMATS.keys def initialize(attributes = nil) |