IDEMPIERE-3900 Warehouse not reset upon change role in context / based on patch suggested by Pritesh Shah

This commit is contained in:
Carlos Ruiz 2019-02-22 17:32:41 +01:00
parent 10907fbaab
commit 197e5f4ca2
1 changed files with 5 additions and 0 deletions

View File

@ -819,6 +819,11 @@ public class Login
Env.setContext(m_ctx, Env.M_WAREHOUSE_ID, warehouse.getKey());
Ini.setProperty(Ini.P_WAREHOUSE, warehouse.getName());
}
else
{
Env.setContext(m_ctx, Env.M_WAREHOUSE_ID, "");
Ini.setProperty(Ini.P_WAREHOUSE, "");
}
// Date (default today)
long today = System.currentTimeMillis();