From b886c593c8f99cbaa06fed81aaab878d7f3092cd Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 13 Mar 2020 21:53:49 +0100 Subject: [PATCH] IDEMPIERE-4209 Attachment button doesn't refresh when deleting the whole attachment --- .../WEB-INF/src/org/adempiere/webui/panel/WAttachment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java index 0c318c0f8a..ad530fc84c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java @@ -575,7 +575,6 @@ public class WAttachment extends Window implements EventListener } else if (e.getTarget() == bDeleteAll) { // Delete Attachment deleteAttachment(); - dispose(); } else if (e.getTarget() == bDelete) { // Delete individual entry and Return deleteAttachmentEntry(); @@ -676,6 +675,7 @@ public class WAttachment extends Window implements EventListener m_attachment.delete(true); m_attachment = null; } + dispose(); } } });