ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

fix_project.patch

Alan Chandler, 2012-03-21 09:10 pm

Download (1.4 kB)

 
b/lib/tasks/migrate_from_mantis.rake
264 264
      categories_map = {}
265 265
      MantisProject.find(:all).each do |project|
266 266
    	p = Project.new :name => encode(project.name),
267
                        :description => encode(project.description)
268
    	p.identifier = project.identifier
269
    	next unless p.save
270
    	projects_map[project.id] = p.id
271
    	p.enabled_module_names = ['issue_tracking', 'news', 'wiki']
272
        p.trackers << TRACKER_BUG
273
        p.trackers << TRACKER_FEATURE
267
                        :description => encode(project.description),
268
                        :trackers => [TRACKER_BUG,TRACKER_FEATURE]
269
        p.identifier = project.identifier
270
        projects_map[project.id] = p.id
271
        p.enabled_module_names = ['issue_tracking', 'news', 'wiki']
272
        p.save
274 273
    	print '.'
275 274

  
276 275
    	# Project members
277
-