IDEMPIERE-3900 Warehouse not reset upon change role in context / based on patch suggested by Pritesh Shah
This commit is contained in:
parent
10907fbaab
commit
197e5f4ca2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue