@ -203,7 +203,11 @@ class AttachmentsController < ApplicationController
if @attachment.container.respond_to?(:init_journal)
@attachment.container.init_journal(User.current)
end
if @attachment.container
@attachment.container.attachments.delete(@attachment)
else
@attachment.destroy
respond_to do |format|
if !@attachment.container.nil? &&