From 2b11005fc8575a8acb5d9c0f6d1f26c619a9be29 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 6 Jun 2011 18:38:27 -0500 Subject: [PATCH] fixes #31 Context problem when parent column can be in multiple tabs --- .../src/org/adempiere/webui/component/AbstractADTab.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/AbstractADTab.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/AbstractADTab.java index 126696ba6c..1b77f96f3b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/AbstractADTab.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/AbstractADTab.java @@ -150,7 +150,6 @@ public abstract class AbstractADTab extends AbstractUIPart implements IADTab if (adtab.getTabLevel() < currentLevel) { parents.add(i); - currentLevel = adtab.getTabLevel(); } } parents.add(0); @@ -182,7 +181,8 @@ public abstract class AbstractADTab extends AbstractUIPart implements IADTab GridField[] fields = adtab.getGridTab().getFields(); for (GridField gf : fields) { - gf.updateContext(); + if (gf.getValue() != null) // preserve value of tab above if null on current tab + gf.updateContext(); } } }