IDEMPIERE-3340 Adaxa's User Favorite which allow user to organize their menu, create folders / fix Cross-tenant issue (#1046)
This commit is contained in:
parent
1da4e41f0a
commit
2c89382aca
|
@ -68,8 +68,13 @@ public class FavouriteController
|
||||||
vTree.setAD_Org_ID(user.getAD_Org_ID());
|
vTree.setAD_Org_ID(user.getAD_Org_ID());
|
||||||
// Support for System user
|
// Support for System user
|
||||||
vTree.set_ValueNoCheck(MTreeFavorite.COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
|
vTree.set_ValueNoCheck(MTreeFavorite.COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
|
||||||
if (!vTree.save())
|
try {
|
||||||
throw new AdempiereException(Msg.getMsg(Env.getCtx(), "FavTreeNotCreate"));
|
PO.setCrossTenantSafe();
|
||||||
|
if (!vTree.save())
|
||||||
|
throw new AdempiereException(Msg.getMsg(Env.getCtx(), "FavTreeNotCreate"));
|
||||||
|
} finally {
|
||||||
|
PO.clearCrossTenantSafe();
|
||||||
|
}
|
||||||
|
|
||||||
m_AD_Tree_Favorite_ID = vTree.getAD_Tree_Favorite_ID();
|
m_AD_Tree_Favorite_ID = vTree.getAD_Tree_Favorite_ID();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue