IDEMPIERE-984 Change Role and Logout must check for unsaved records on open windows / implement suggestions from Heng Sin
This commit is contained in:
parent
a9b1e95f6b
commit
2dde3e9b8a
|
@ -417,9 +417,6 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
|
||||||
//clear context, invalidate session
|
//clear context, invalidate session
|
||||||
Env.getCtx().clear();
|
Env.getCtx().clear();
|
||||||
session.invalidate();
|
session.invalidate();
|
||||||
|
|
||||||
//redirect to login page
|
|
||||||
Executions.sendRedirect("index.zul");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,6 @@ public class SessionContextListener implements ExecutionInit,
|
||||||
|
|
||||||
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
||||||
{
|
{
|
||||||
SessionManager.logoutSessionAfterBrowserDestroyed();
|
|
||||||
setupExecutionContextFromSession(Executions.getCurrent());
|
setupExecutionContextFromSession(Executions.getCurrent());
|
||||||
}
|
}
|
||||||
int AD_Session_ID = Env.getContextAsInt(Env.getCtx(), "#AD_Session_ID");
|
int AD_Session_ID = Env.getContextAsInt(Env.getCtx(), "#AD_Session_ID");
|
||||||
|
@ -340,6 +339,7 @@ public class SessionContextListener implements ExecutionInit,
|
||||||
mSession.setProcessed(true);
|
mSession.setProcessed(true);
|
||||||
mSession.saveEx();
|
mSession.saveEx();
|
||||||
}
|
}
|
||||||
|
SessionManager.logoutSessionAfterBrowserDestroyed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue