From dcfb83af13dddc03e983ee766f70d2fb8b8bdaea Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 1 Oct 2013 18:30:26 +0800 Subject: [PATCH] #1002872 Support estimated landed costs. Fixed level 2 tab not auto refresh when moving from level 0 to level 1 tab using the grid edit icon. IDEMPIERE-1285 --- .../webui/adwindow/AbstractADWindowContent.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index 7f69fbbb85..e5ac357ed4 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -1181,7 +1181,18 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements { Object value = Executions.getCurrent().removeAttribute(CompositeADTabbox.AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE); if (value != newTabpanel) + { newTabpanel.query(); + } + else + { + //detail pane of the new header tab might need refresh + if (newTabpanel instanceof ADTabpanel) + { + ADTabpanel adtabpanel = (ADTabpanel) newTabpanel; + Events.echoEvent(ADTabpanel.ON_POST_INIT_EVENT, adtabpanel, null); + } + } } else {