diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-10-13 10:07:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-10-13 10:07:34 +0000 |
commit | 58c69b812341ce715ddf662b924949aaa077df59 (patch) | |
tree | 8636b69339023228717268a225b0ea59e10fdce4 /lib/tasks | |
parent | 7bea176cdb745aa5351c3836afc89ee339052125 (diff) | |
download | redmine-58c69b812341ce715ddf662b924949aaa077df59.tar.gz redmine-58c69b812341ce715ddf662b924949aaa077df59.zip |
Fixed that redmine:migrate_from_mantis fails to migrate projects with all upper case name (#15050).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12218 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/migrate_from_mantis.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index ffa84d4ea..800bb4085 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -119,7 +119,7 @@ task :migrate_from_mantis => :environment do has_many :members, :class_name => "MantisProjectUser", :foreign_key => :project_id def identifier - read_attribute(:name).gsub(/[^a-z0-9\-]+/, '-').slice(0, Project::IDENTIFIER_MAX_LENGTH) + read_attribute(:name).downcase.gsub(/[^a-z0-9\-]+/, '-').slice(0, Project::IDENTIFIER_MAX_LENGTH) end end |