]> source.dussan.org Git - redmine.git/commitdiff
Fixed that redmine:migrate_from_mantis fails to migrate projects with all upper case...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Oct 2013 10:07:34 +0000 (10:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Oct 2013 10:07:34 +0000 (10:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12218 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/migrate_from_mantis.rake

index ffa84d4ea1202fc1a40c940e0908523bd2190b40..800bb408511ded223af7649e28b2ac64ade531e8 100644 (file)
@@ -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