diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-03 10:28:08 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-03 10:28:08 +0000 |
commit | 92a23c05bb71e62426cec2298d90b39fadd0eb52 (patch) | |
tree | 87093cc5919c75b4a34392cad6176e9ebf639059 /lib | |
parent | 7d8af70a6362517cab9aa2dc2054fa8dd8581ad8 (diff) | |
download | redmine-92a23c05bb71e62426cec2298d90b39fadd0eb52.tar.gz redmine-92a23c05bb71e62426cec2298d90b39fadd0eb52.zip |
Project name format limitation removed (name can now contain any character).
Project identifier maximum length changed from 12 to 20.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@949 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/migrate_from_mantis.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index 593d59d82..6d8d55e7c 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -115,7 +115,7 @@ task :migrate_from_mantis => :environment do has_many :members, :class_name => "MantisProjectUser", :foreign_key => :project_id
def name
- read_attribute(:name)[0..29].gsub(/[^\w\s\'\-]/, '-')
+ read_attribute(:name)[0..29]
end
def description
@@ -123,7 +123,7 @@ task :migrate_from_mantis => :environment do end
def identifier
- read_attribute(:name).underscore[0..11].gsub(/[^a-z0-9\-]/, '-')
+ read_attribute(:name).underscore[0..19].gsub(/[^a-z0-9\-]/, '-')
end
end
|