IDEMPIERE-984 Change Role and Logout must check for unsaved records on open windows / implement suggestions from Heng Sin

This commit is contained in:
Carlos Augusto Sanchez 2013-07-29 17:42:27 -05:00
parent a9b1e95f6b
commit 2dde3e9b8a
2 changed files with 1 additions and 4 deletions

View File

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

View File

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