IDEMPIERE-5072 Blocking - Change Rol / IDEMPIERE-4782 (#1025)
This commit is contained in:
parent
0b0ed6781e
commit
324cac7375
|
@ -589,7 +589,7 @@ public class RolePanel extends Window implements EventListener<Event>, Deferrabl
|
|||
int AD_Role_ID = Env.getAD_Role_ID(ctx);
|
||||
lstRole.setValue(AD_Role_ID);
|
||||
updateOrganisationList();
|
||||
int AD_Org_ID = Env.getAD_Org_ID(ctx);
|
||||
int AD_Org_ID = Env.getContextAsInt(ctx, "#AD_Org_ID_ChangeRole");
|
||||
lstOrganisation.setValue(AD_Org_ID);
|
||||
updateWarehouseList();
|
||||
int M_Warehouse_ID = Env.getContextAsInt(ctx, Env.M_WAREHOUSE_ID);
|
||||
|
|
|
@ -213,6 +213,7 @@ public class LoginWindow extends FWindow implements EventListener<Event>
|
|||
{
|
||||
Env.setCtx(ctx);
|
||||
// clear the org ID - to force a logout if the user pushes Refresh on RolePanel
|
||||
Env.setContext(ctx, "#AD_Org_ID_ChangeRole", Env.getAD_Org_ID(ctx));
|
||||
Env.setContext(ctx, Env.AD_ORG_ID, "");
|
||||
getDesktop().getSession().setAttribute(SessionContextListener.SESSION_CTX, ctx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue