Project

General

Profile

Patch #4535 ยป migrate_from_mantis.rake.patch

Wim Heirman, 2010-01-07 23:25

View differences:

migrate_from_mantis.rake 2010-01-07 22:24:25.000000000 +0000
324 324
                      :updated_on => bug.last_updated
325 325
       i.author = User.find_by_id(users_map[bug.reporter_id])
326 326
       i.category = IssueCategory.find_by_project_id_and_name(i.project_id, bug.category[0,30]) unless bug.category.blank?
327
       i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version) unless bug.fixed_in_version.blank?
327
        if not bug.fixed_in_version.blank?
328
         i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version)
329
        elsif not bug.target_version.blank?
330
         i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.target_version)
331
       end
328 332
       i.status = STATUS_MAPPING[bug.status] || DEFAULT_STATUS
329 333
       i.tracker = (bug.severity == 10 ? TRACKER_FEATURE : TRACKER_BUG)
330 334
       i.id = bug.id if keep_bug_ids
    (1-1/1)