From 5e0a824d0409058ece2757519d1671e1812f5be7 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Sun, 11 Nov 2018 18:31:51 -0200 Subject: [PATCH] IDEMPIERE-3814 Toolbar doesn't respect restriction when window is opened on a sub tab --- .../adempiere/webui/adwindow/AbstractADWindowContent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 4f8a4e9993..825fd2c89b 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 @@ -369,14 +369,14 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements toolbar.enableFind(true); adTabbox.evaluate(null); + toolbar.updateToolbarAccess(adWindowId); + updateToolbar(); + if (detailQuery != null && zoomToDetailTab(detailQuery)) { return true; } - toolbar.updateToolbarAccess(adWindowId); - updateToolbar(); - SessionManager.getAppDesktop().updateHelpContext(X_AD_CtxHelp.CTXTYPE_Tab, adTabbox.getSelectedGridTab().getAD_Tab_ID()); return true;