summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-08-25 14:37:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-08-25 14:37:44 +0000
commit2042e3bbd9bbd2206a0abe7f00a856ca02c37b50 (patch)
tree37753c84fa269830f54c01923f6af7068b583fef /app/models
parentd93f96765b6fc386cb5565985d02d9f6e71895c5 (diff)
downloadredmine-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.rb2
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)