From: Jean-Philippe Lang Date: Wed, 23 Jan 2008 22:31:26 +0000 (+0000) Subject: Mantis importer: X-Git-Tag: 0.7.0-RC1~186 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a1e928b8db0cc0a584011973042522cd7b38d4d;p=redmine.git Mantis importer: * do not truncate projects descriptions * encode attachment filenames to utf8 git-svn-id: http://redmine.rubyforge.org/svn/trunk@1100 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index 6d8d55e7c..36e7e1514 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -118,10 +118,6 @@ task :migrate_from_mantis => :environment do read_attribute(:name)[0..29] end - def description - read_attribute(:description).blank? ? read_attribute(:name) : read_attribute(:description)[0..254] - end - def identifier read_attribute(:name).underscore[0..19].gsub(/[^a-z0-9\-]/, '-') end @@ -186,7 +182,7 @@ task :migrate_from_mantis => :environment do end def original_filename - filename + MantisMigrate.encode(filename) end def content_type @@ -445,7 +441,6 @@ task :migrate_from_mantis => :environment do end end - private def self.encode(text) @ic.iconv text rescue