IDEMPIERE-4643: Cross Tenant issue when completing Requisition (#521)
This commit is contained in:
parent
12ba0699d7
commit
e4ee47f92d
|
@ -242,9 +242,9 @@ public class MWFNode extends X_AD_WF_Node implements ImmutablePOSupport
|
||||||
*/
|
*/
|
||||||
private void loadNext()
|
private void loadNext()
|
||||||
{
|
{
|
||||||
m_next = new Query(getCtx(), MWFNodeNext.Table_Name, "AD_WF_NodeNext.AD_WF_Node_ID=?", get_TrxName())
|
m_next = new Query(getCtx(), MWFNodeNext.Table_Name, "AD_WF_NodeNext.AD_WF_Node_ID=? AND AD_WF_NodeNext.AD_Client_ID IN (0, ?)", get_TrxName())
|
||||||
.addJoinClause(" JOIN AD_WF_Node ON (AD_WF_Node.AD_WF_Node_ID=AD_WF_NodeNext.AD_WF_Next_ID AND AD_WF_Node.IsActive='Y')")
|
.addJoinClause(" JOIN AD_WF_Node ON (AD_WF_Node.AD_WF_Node_ID=AD_WF_NodeNext.AD_WF_Next_ID AND AD_WF_Node.IsActive='Y')")
|
||||||
.setParameters(new Object[]{get_ID()})
|
.setParameters(new Object[]{get_ID(), Env.getAD_Client_ID(Env.getCtx())})
|
||||||
.setOnlyActiveRecords(true)
|
.setOnlyActiveRecords(true)
|
||||||
.setOrderBy(MWFNodeNext.COLUMNNAME_SeqNo)
|
.setOrderBy(MWFNodeNext.COLUMNNAME_SeqNo)
|
||||||
.list();
|
.list();
|
||||||
|
|
Loading…
Reference in New Issue