From 7134376d7b070152e5168a1ee5b3f9497f377984 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 20 May 2015 12:17:24 -0500 Subject: [PATCH] IDEMPIERE-2583 Can't zoom to a sub tab from Info Window --- .../WEB-INF/src/org/adempiere/webui/apps/AEnv.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java index 7e832796e2..4ddbf5965b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java @@ -156,7 +156,11 @@ public final class AEnv if (AD_Window_ID == 0) return; MTable table = MTable.get(Env.getCtx(), AD_Table_ID); - zoom(AD_Window_ID, MQuery.getEqualQuery(table.getKeyColumns()[0], Record_ID)); + MQuery query = MQuery.getEqualQuery(table.getKeyColumns()[0], Record_ID); + query.setZoomTableName(table.getTableName()); + query.setZoomColumnName(table.getKeyColumns()[0]); + query.setZoomValue(Record_ID); + zoom(AD_Window_ID, query); } // zoom /*************************************************************************