IDEMPIERE-2756 Background threads losing context when user log out / found issue when cached objects have lost their context but are still returned from cache (failing case second run of any ModelRunProcess web service)

This commit is contained in:
Carlos Ruiz 2015-08-10 12:24:02 -05:00
parent b1c16a2441
commit 393655c8b3
1 changed files with 2 additions and 0 deletions

View File

@ -425,6 +425,8 @@ public abstract class PO
*/
public Properties getCtx()
{
if (p_ctx.size() == 0 && Env.getCtx().size() > 0)
p_ctx = Env.getCtx();
return p_ctx;
} // getCtx