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:
parent
530bec0e1a
commit
df55f2e0cf
|
@ -3116,6 +3116,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
{
|
{
|
||||||
tabNo--;
|
tabNo--;
|
||||||
currentLevel = Env.getContextAsInt(m_vo.ctx, m_vo.WindowNo, tabNo, GridTab.CTX_TabLevel);
|
currentLevel = Env.getContextAsInt(m_vo.ctx, m_vo.WindowNo, tabNo, GridTab.CTX_TabLevel);
|
||||||
|
if (tabNo == 0)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return tabNo;
|
return tabNo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3690,6 +3690,8 @@ public class GridTable extends AbstractTableModel
|
||||||
{
|
{
|
||||||
tabNo--;
|
tabNo--;
|
||||||
currentLevel = Env.getContextAsInt(m_ctx, m_WindowNo, tabNo, GridTab.CTX_TabLevel);
|
currentLevel = Env.getContextAsInt(m_ctx, m_WindowNo, tabNo, GridTab.CTX_TabLevel);
|
||||||
|
if (tabNo == 0)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return tabNo;
|
return tabNo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue