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
This commit is contained in:
Jean-Philippe Lang 2013-10-13 10:07:34 +00:00
parent 7bea176cdb
commit 58c69b8123
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ task :migrate_from_mantis => :environment do
has_many :members, :class_name => "MantisProjectUser", :foreign_key => :project_id has_many :members, :class_name => "MantisProjectUser", :foreign_key => :project_id
def identifier 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
end end