summaryrefslogtreecommitdiffstats
path: root/lib/tasks/migrate_from_mantis.rake
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-23 22:31:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-23 22:31:26 +0000
commit7a1e928b8db0cc0a584011973042522cd7b38d4d (patch)
treedb667cfaacc527127e7b00d08a6e6fb6c269d484 /lib/tasks/migrate_from_mantis.rake
parentb0f3de5c3b75c6e69ff5df31eac9f12c6cce064e (diff)
downloadredmine-7a1e928b8db0cc0a584011973042522cd7b38d4d.tar.gz
redmine-7a1e928b8db0cc0a584011973042522cd7b38d4d.zip
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
Diffstat (limited to 'lib/tasks/migrate_from_mantis.rake')
-rw-r--r--lib/tasks/migrate_from_mantis.rake7
1 files changed, 1 insertions, 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