diff --git a/app/models/issue.rb b/app/models/issue.rb index ad9218bbc1..cc9159d537 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -392,7 +392,7 @@ class Issue < ActiveRecord::Base def attachment_removed(obj) init_journal(User.current) create_journal - last_journal.update_attribute(:changed_data, {"attachments_" + obj.id.to_s => [obj.filename, nil]}.to_yaml) + last_journal.update_attribute(:changed_data, {"attachments_" + obj.id.to_s => [obj.filename, nil]}) end # Return true if the issue is closed, otherwise false