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