@@ -163,7 +163,7 namespace :redmine do | |||
|
163 | 163 | set_inheritance_column :none |
|
164 | 164 | |
|
165 | 165 | # ticket changes: only migrate status changes and comments |
|
166 | has_many :changes, :class_name => "TracTicketChange", :foreign_key => :ticket | |
|
166 | has_many :ticket_changes, :class_name => "TracTicketChange", :foreign_key => :ticket | |
|
167 | 167 | has_many :customs, :class_name => "TracTicketCustom", :foreign_key => :ticket |
|
168 | 168 | |
|
169 | 169 | def attachments |
@@ -487,7 +487,7 namespace :redmine do | |||
|
487 | 487 | end |
|
488 | 488 | |
|
489 | 489 | # Comments and status/resolution changes |
|
490 | ticket.changes.group_by(&:time).each do |time, changeset| | |
|
490 | ticket.ticket_changes.group_by(&:time).each do |time, changeset| | |
|
491 | 491 | status_change = changeset.select {|change| change.field == 'status'}.first |
|
492 | 492 | resolution_change = changeset.select {|change| change.field == 'resolution'}.first |
|
493 | 493 | comment_change = changeset.select {|change| change.field == 'comment'}.first |
General Comments 0
You need to be logged in to leave comments.
Login now