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
|
||||
Env.getCtx().clear();
|
||||
session.invalidate();
|
||||
|
||||
//redirect to login page
|
||||
Executions.sendRedirect("index.zul");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -319,7 +319,6 @@ public class SessionContextListener implements ExecutionInit,
|
|||
|
||||
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
||||
{
|
||||
SessionManager.logoutSessionAfterBrowserDestroyed();
|
||||
setupExecutionContextFromSession(Executions.getCurrent());
|
||||
}
|
||||
int AD_Session_ID = Env.getContextAsInt(Env.getCtx(), "#AD_Session_ID");
|
||||
|
@ -340,6 +339,7 @@ public class SessionContextListener implements ExecutionInit,
|
|||
mSession.setProcessed(true);
|
||||
mSession.saveEx();
|
||||
}
|
||||
SessionManager.logoutSessionAfterBrowserDestroyed();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue