解决issue多附件,删除一个附件后,提交弹出白色框框的问题

dev_hjq
huang 10 years ago
parent c323e15e2c
commit 11444f43f0

@ -229,7 +229,11 @@ class AttachmentsController < ApplicationController
@attachment.container.init_journal(User.current)
end
if @attachment.container
if @attachment.container_type == "Issue"
@attachment.destroy
else
@attachment.container.attachments.delete(@attachment)
end
else
@attachment.destroy
end

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save