diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-31 15:30:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-31 15:30:50 +0000 |
commit | 44ffc5a3365ffd16d6971d1c3f691a2f3f80ba3b (patch) | |
tree | 8d0db8696ecbb0c67821dc3c11f2243a1425b28d /app/models | |
parent | 92d34234b01f7d0e7850b50ccd2559f1e63cac5d (diff) | |
download | redmine-44ffc5a3365ffd16d6971d1c3f691a2f3f80ba3b.tar.gz redmine-44ffc5a3365ffd16d6971d1c3f691a2f3f80ba3b.zip |
Remove the limitation on characters that can be used in custom_field, issue_status, role, tracker, user names (#5152).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4599 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/custom_field.rb | 1 | ||||
-rw-r--r-- | app/models/issue_status.rb | 1 | ||||
-rw-r--r-- | app/models/role.rb | 1 | ||||
-rw-r--r-- | app/models/tracker.rb | 1 | ||||
-rw-r--r-- | app/models/user.rb | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 7cc6e865d..3aacd4686 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -23,7 +23,6 @@ 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_inclusion_of :field_format, :in => Redmine::CustomFieldFormat.available_formats def initialize(attributes = nil) diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb index f376d5d15..8171cdb79 100644 --- a/app/models/issue_status.rb +++ b/app/models/issue_status.rb @@ -25,7 +25,6 @@ class IssueStatus < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name validates_length_of :name, :maximum => 30 - validates_format_of :name, :with => /^[\w\s\'\-]*$/i validates_inclusion_of :default_done_ratio, :in => 0..100, :allow_nil => true def after_save diff --git a/app/models/role.rb b/app/models/role.rb index d1bebdb6d..6a4b9e4e3 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -43,7 +43,6 @@ class Role < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name validates_length_of :name, :maximum => 30 - validates_format_of :name, :with => /^[\w\s\'\-]*$/i def permissions read_attribute(:permissions) || [] diff --git a/app/models/tracker.rb b/app/models/tracker.rb index 9ee045ce1..93fdd4035 100644 --- a/app/models/tracker.rb +++ b/app/models/tracker.rb @@ -31,7 +31,6 @@ class Tracker < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name validates_length_of :name, :maximum => 30 - validates_format_of :name, :with => /^[\w\s\'\-]*$/i def to_s; name end diff --git a/app/models/user.rb b/app/models/user.rb index 91d6c5fd0..7d0014c8d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -68,7 +68,6 @@ class User < Principal # Login must contain lettres, numbers, underscores only validates_format_of :login, :with => /^[a-z0-9_\-@\.]*$/i validates_length_of :login, :maximum => 30 - validates_format_of :firstname, :lastname, :with => /^[\w\s\'\-\.]*$/i validates_length_of :firstname, :lastname, :maximum => 30 validates_format_of :mail, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :allow_nil => true validates_length_of :mail, :maximum => 60, :allow_nil => true |