Commit 1f882883 authored by Eric Davis's avatar Eric Davis

[#123] Attachment changes need to be prefixed

parent b1ed5e4c
...@@ -353,7 +353,7 @@ class Issue < ActiveRecord::Base ...@@ -353,7 +353,7 @@ class Issue < ActiveRecord::Base
def attachment_removed(obj) def attachment_removed(obj)
init_journal(User.current) init_journal(User.current)
create_journal 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 end
# Return true if the issue is closed, otherwise false # Return true if the issue is closed, otherwise false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment