Project

General

Profile

Actions

Patch #1540

closed

Migrate from Trac v0.8.x

Added by Hallison Vasconcelos Batista almost 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
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

migrate_from_trac.rake.patch (513 Bytes) migrate_from_trac.rake.patch Patch for fix migration projects from Trac v0.8.x Hallison Vasconcelos Batista, 2008-06-27 19:12
Actions #1

Updated by Jean-Philippe Lang almost 16 years ago

  • Category changed from Projects to Importers
  • Status changed from New to Closed

Fixed in r1597. Thanks.

Actions

Also available in: Atom PDF