IDEMPIERE-2756 Background threads losing context when user log out - fix validation
This commit is contained in:
parent
9397af1b11
commit
6ff666e30c
|
@ -425,8 +425,6 @@ public abstract class PO
|
|||
*/
|
||||
public Properties getCtx()
|
||||
{
|
||||
if (p_ctx.size() == 0 && Env.getCtx().size() > 0)
|
||||
p_ctx = Env.getCtx();
|
||||
return p_ctx;
|
||||
} // getCtx
|
||||
|
||||
|
@ -4676,7 +4674,7 @@ public abstract class PO
|
|||
}
|
||||
|
||||
private void checkValidContext() {
|
||||
if (getCtx().size() == 0)
|
||||
if (getCtx().isEmpty() && getCtx().getProperty("#AD_Client_ID") == null)
|
||||
throw new AdempiereException("Context lost");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue