From 7a1e928b8db0cc0a584011973042522cd7b38d4d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 23 Jan 2008 22:31:26 +0000 Subject: [PATCH] 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 --- lib/tasks/migrate_from_mantis.rake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 -- 2.39.5