Actions
Patch #1540
closedMigrate from Trac v0.8.x
Start date:
2008-06-27
Due date:
% Done:
0%
Estimated time:
Description
In task for migrate projects from Trac v0.8.x to redmine, I get following error:
Migrating components........ Migrating milestones.rake aborted! undefined method `description' for #<TracMigrate::TracMilestone:0xb7026590>
For resolved this problem, I create a patch that fix this error.
class TracMilestone < ActiveRecord::Base set_table_name :milestone def due if read_attribute(:due) && read_attribute(:due) > 0 Time.at(read_attribute(:due)).to_date else nil end end def description return read_attribute(:descr) if has_attribute?(:descr) # Only Trac v0.8.x read_attribute(:description) end end
It's work.
Files
Updated by Jean-Philippe Lang over 16 years ago
- Category changed from Projects to Importers
- Status changed from New to Closed
Fixed in r1597. Thanks.
Actions