]> source.dussan.org Git - redmine.git/commitdiff
Dots allowed in custom field name (#1723).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 25 Aug 2008 14:37:44 +0000 (14:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 25 Aug 2008 14:37:44 +0000 (14:37 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1760 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/custom_field.rb

index 704fbe010048b220fdcfb8e45cf700feaa68dc95..4759b714bbdf74f7050b0672d13652f50a084ea2 100644 (file)
@@ -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)