fix use of versions vs journals

This commit is contained in:
Tim Felgentreff 2010-09-14 15:18:28 +02:00
parent a6a25cc5c1
commit 4eb07d6ce6
1 changed files with 2 additions and 2 deletions

View File

@ -750,8 +750,8 @@ class Issue < ActiveRecord::Base
# Implicitely creates a new journal
duplicate.update_attribute :status, self.status
# Same user and notes
duplicate.versions.last.user = current_journal.user
duplicate.versions.last.notes = current_journal.notes
duplicate.journals.last.user = current_journal.user
duplicate.journals.last.notes = current_journal.notes
end
end
end