IDEMPIERE-369 Master Detail layout improvements / Found an infinite loop when a child tab is defined in level 2 and the parent tab is defined in level 0

This commit is contained in:
Carlos Ruiz 2013-01-25 16:20:00 -08:00
parent 530bec0e1a
commit df55f2e0cf
2 changed files with 4 additions and 0 deletions

View File

@ -3116,6 +3116,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
{
tabNo--;
currentLevel = Env.getContextAsInt(m_vo.ctx, m_vo.WindowNo, tabNo, GridTab.CTX_TabLevel);
if (tabNo == 0)
break;
}
return tabNo;
}

View File

@ -3690,6 +3690,8 @@ public class GridTable extends AbstractTableModel
{
tabNo--;
currentLevel = Env.getContextAsInt(m_ctx, m_WindowNo, tabNo, GridTab.CTX_TabLevel);
if (tabNo == 0)
break;
}
return tabNo;
}