Project

General

Profile

« Previous | Next » 

Revision 1760

Dots allowed in custom field name (#1723).

View differences:

trunk/app/models/custom_field.rb
32 32
  validates_presence_of :name, :field_format
33 33
  validates_uniqueness_of :name, :scope => :type
34 34
  validates_length_of :name, :maximum => 30
35
  validates_format_of :name, :with => /^[\w\s\'\-]*$/i
35
  validates_format_of :name, :with => /^[\w\s\.\'\-]*$/i
36 36
  validates_inclusion_of :field_format, :in => FIELD_FORMATS.keys
37 37

  
38 38
  def initialize(attributes = nil)

Also available in: Unified diff