fixes #31 Context problem when parent column can be in multiple tabs

This commit is contained in:
Carlos Ruiz 2011-06-06 18:38:27 -05:00
parent 643207c0f8
commit 2b11005fc8
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,6 @@ public abstract class AbstractADTab extends AbstractUIPart implements IADTab
if (adtab.getTabLevel() < currentLevel) if (adtab.getTabLevel() < currentLevel)
{ {
parents.add(i); parents.add(i);
currentLevel = adtab.getTabLevel();
} }
} }
parents.add(0); parents.add(0);
@ -182,7 +181,8 @@ public abstract class AbstractADTab extends AbstractUIPart implements IADTab
GridField[] fields = adtab.getGridTab().getFields(); GridField[] fields = adtab.getGridTab().getFields();
for (GridField gf : fields) for (GridField gf : fields)
{ {
gf.updateContext(); if (gf.getValue() != null) // preserve value of tab above if null on current tab
gf.updateContext();
} }
} }
} }