@@ -310,7 +310,7 task :migrate_from_mantis => :environment do | |||||
310 | :created_on => bug.date_submitted, |
|
310 | :created_on => bug.date_submitted, | |
311 | :updated_on => bug.last_updated |
|
311 | :updated_on => bug.last_updated | |
312 | i.author = User.find_by_id(users_map[bug.reporter_id]) |
|
312 | i.author = User.find_by_id(users_map[bug.reporter_id]) | |
313 | i.category = IssueCategory.find_by_project_id_and_name(i.project_id, bug.category) unless bug.category.blank? |
|
313 | i.category = IssueCategory.find_by_project_id_and_name(i.project_id, bug.category[0,30]) unless bug.category.blank? | |
314 | i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version) unless bug.fixed_in_version.blank? |
|
314 | i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version) unless bug.fixed_in_version.blank? | |
315 | i.status = STATUS_MAPPING[bug.status] || DEFAULT_STATUS |
|
315 | i.status = STATUS_MAPPING[bug.status] || DEFAULT_STATUS | |
316 | i.tracker = (bug.severity == 10 ? TRACKER_FEATURE : TRACKER_BUG) |
|
316 | i.tracker = (bug.severity == 10 ? TRACKER_FEATURE : TRACKER_BUG) |
General Comments 0
You need to be logged in to leave comments.
Login now