IDEMPIERE-4615 Cross Tenant Workflow Node cause - Cross tenant PO issue (#496)

This commit is contained in:
hengsin 2021-01-03 01:17:10 +08:00 committed by GitHub
parent 240b1b277c
commit 12009bf670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -330,8 +330,8 @@ public class MWorkflow extends X_AD_Workflow implements ImmutablePOSupport
*/
private void loadNodes()
{
m_nodes = new Query(getCtx(), MWFNode.Table_Name, "AD_WorkFlow_ID=?", get_TrxName())
.setParameters(new Object[]{get_ID()})
m_nodes = new Query(getCtx(), MWFNode.Table_Name, "AD_WorkFlow_ID=? AND AD_Client_ID IN (0, ?)", get_TrxName())
.setParameters(get_ID(), Env.getAD_Client_ID(Env.getCtx()))
.setOnlyActiveRecords(true)
.list();
if (m_nodes.size() > 0 && is_Immutable())