IDEMPIERE-4615 Cross Tenant Workflow Node cause - Cross tenant PO issue (#496)
This commit is contained in:
parent
240b1b277c
commit
12009bf670
|
@ -330,8 +330,8 @@ public class MWorkflow extends X_AD_Workflow implements ImmutablePOSupport
|
||||||
*/
|
*/
|
||||||
private void loadNodes()
|
private void loadNodes()
|
||||||
{
|
{
|
||||||
m_nodes = new Query(getCtx(), MWFNode.Table_Name, "AD_WorkFlow_ID=?", get_TrxName())
|
m_nodes = new Query(getCtx(), MWFNode.Table_Name, "AD_WorkFlow_ID=? AND AD_Client_ID IN (0, ?)", get_TrxName())
|
||||||
.setParameters(new Object[]{get_ID()})
|
.setParameters(get_ID(), Env.getAD_Client_ID(Env.getCtx()))
|
||||||
.setOnlyActiveRecords(true)
|
.setOnlyActiveRecords(true)
|
||||||
.list();
|
.list();
|
||||||
if (m_nodes.size() > 0 && is_Immutable())
|
if (m_nodes.size() > 0 && is_Immutable())
|
||||||
|
|
Loading…
Reference in New Issue