IDEMPIERE-195 Expand menu automatically - minor improvement to use cached version of the current user

This commit is contained in:
Carlos Ruiz 2012-04-12 16:02:11 -05:00
parent 8bc3e8895c
commit b70cd913b4
3 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ public final class AMenu extends CFrame
infoUpdaterThread.start();
// Auto Expand Tree - nmicoud IDEMPIERE 195
if (MRole.getDefault().isMenuAutoExpand() || new MUser(m_ctx, m_AD_User_ID, null).isMenuAutoExpand())
if (MRole.getDefault().isMenuAutoExpand() || MUser.get(m_ctx).isMenuAutoExpand())
treePanel.expandTree(true);
// Auto Expand Tree - nmicoud IDEMPIERE 195

View File

@ -173,7 +173,7 @@ public final class VTreePanel extends CPanel
/**
*
*/
private static final long serialVersionUID = -6798614427038652192L;
private static final long serialVersionUID = -7188402231414573844L;
private static final String PREFIX_DOCUMENT_SEARCH = "/";

View File

@ -84,7 +84,7 @@ public class MenuPanel extends Panel implements EventListener
pnlSearch.initialise();
// Auto Expand Tree - nmicoud IDEMPIERE 195
if (MRole.getDefault().isMenuAutoExpand() || new MUser(ctx, Env.getAD_User_ID(ctx), null).isMenuAutoExpand())
if (MRole.getDefault().isMenuAutoExpand() || MUser.get(ctx).isMenuAutoExpand())
expandAll();
// Auto Expand Tree - nmicoud IDEMPIERE 195
}