comparison lib/tasks/migrate_from_mantis.rake @ 210:0579821a129a

Update to Redmine trunk rev 4802
author Chris Cannam
date Tue, 08 Feb 2011 13:51:46 +0000
parents 8661b858af72
children 433d4f72a19b
comparison
equal deleted inserted replaced
128:07fa8a8b56a8 210:0579821a129a
285 285
286 # Project versions 286 # Project versions
287 project.versions.each do |version| 287 project.versions.each do |version|
288 v = Version.new :name => encode(version.version), 288 v = Version.new :name => encode(version.version),
289 :description => encode(version.description), 289 :description => encode(version.description),
290 :effective_date => version.date_order.to_date 290 :effective_date => (version.date_order ? version.date_order.to_date : nil)
291 v.project = p 291 v.project = p
292 v.save 292 v.save
293 versions_map[version.id] = v.id 293 versions_map[version.id] = v.id
294 end 294 end
295 295