Defect #10504 » migrate2.patch
lib/tasks/migrate_from_mantis.rake | ||
---|---|---|
286 | 286 |
project.versions.each do |version| |
287 | 287 |
v = Version.new :name => encode(version.version), |
288 | 288 |
:description => encode(version.description), |
289 |
:effective_date => (version.date_order ? version.date_order.to_date : nil)
|
|
289 |
:effective_date => (version.date_order ? Time.At(version.date_order).to_date : nil)
|
|
290 | 290 |
v.project = p |
291 | 291 |
v.save |
292 | 292 |
versions_map[version.id] = v.id |
293 |
- |
lib/tasks/migrate_from_mantis.rake | ||
---|---|---|
286 | 286 |
project.versions.each do |version| |
287 | 287 |
v = Version.new :name => encode(version.version), |
288 | 288 |
:description => encode(version.description), |
289 |
:effective_date => (version.date_order ? Time.At(version.date_order).to_date : nil)
|
|
289 |
:effective_date => (version.date_order ? Time.at(version.date_order).to_date : nil)
|
|
290 | 290 |
v.project = p |
291 | 291 |
v.save |
292 | 292 |
versions_map[version.id] = v.id |
- « Previous
- 1
- 2
- Next »