[#123] Attachment changes need to be prefixed

This commit is contained in:
Eric Davis 2011-05-06 14:08:39 -07:00
parent b1ed5e4c7d
commit 1f8828838e
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ class Issue < ActiveRecord::Base
def attachment_removed(obj)
init_journal(User.current)
create_journal
last_journal.update_attribute(:changes, {obj.id => [obj.filename, nil]}.to_yaml)
last_journal.update_attribute(:changes, {"attachments_" + obj.id.to_s => [obj.filename, nil]}.to_yaml)
end
# Return true if the issue is closed, otherwise false