IDEMPIERE-5072 Blocking - Change Rol / IDEMPIERE-4782 (#1025)

This commit is contained in:
Carlos Ruiz 2021-12-05 12:29:06 +01:00 committed by GitHub
parent 0b0ed6781e
commit 324cac7375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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);