From 9d44e22ad239b66c9177e99ba7b140a3509fb746 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sat, 29 Dec 2012 07:14:49 +0800 Subject: [PATCH] IDEMPIERE-369 Master Detail layout improvements. Fixed zoom to second level detail. --- .../webui/adwindow/AbstractADWindowContent.java | 15 ++++++++++++--- 1 file changed, 12 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 84192c08d8..519c11074b 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 @@ -439,11 +439,20 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements Object[] value = entry.getValue(); MQuery pquery = new MQuery(pTab.getAD_Table_ID()); pquery.addRestriction((String)value[0], "=", value[1]); - pTab.setQuery(pquery); IADTabpanel tp = adTabbox.findADTabpanel(pTab); tp.createUI(); - tp.query(); - } + if (tp.getTabLevel() == 0) + { + pTab.setQuery(pquery); + tp.query(); + } + else + { + tp.query(); + pTab.setQuery(pquery); + tp.query(); + } + } MQuery targetQuery = new MQuery(gTab.getAD_Table_ID()); targetQuery.addRestriction(gTab.getLinkColumnName(), "=", parentId);