Defect #10501 ยป fix_project.patch
| lib/tasks/migrate_from_mantis.rake | ||
|---|---|---|
|
categories_map = {}
|
||
|
MantisProject.find(:all).each do |project|
|
||
|
p = Project.new :name => encode(project.name),
|
||
|
:description => encode(project.description)
|
||
|
:description => encode(project.description),
|
||
|
:trackers => [TRACKER_BUG,TRACKER_FEATURE]
|
||
|
p.identifier = project.identifier
|
||
|
next unless p.save
|
||
|
projects_map[project.id] = p.id
|
||
|
p.enabled_module_names = ['issue_tracking', 'news', 'wiki']
|
||
|
p.trackers << TRACKER_BUG
|
||
|
p.trackers << TRACKER_FEATURE
|
||
|
p.save
|
||
|
print '.'
|
||
|
|
||
|
# Project members
|
||