From f35585a96ef2f1f86a31daa7652c53b982ba4263 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 14 Mar 2023 14:53:06 +0100 Subject: [PATCH] IDEMPIERE-5238 Record_ID editor (#1728) - exclude AD_WF_Activity from the validation to avoid affecting performance --- org.adempiere.base/src/org/compiere/wf/MWFActivity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java index 07f563cac9..d5ada0ce38 100644 --- a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java +++ b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java @@ -204,7 +204,12 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable setEndWaitTime(new Timestamp(limitMS + System.currentTimeMillis())); // Responsible setResponsible(process); - saveEx(); + try { + PO.setCrossTenantSafe(); + saveEx(); + } finally { + PO.clearCrossTenantSafe(); + } // m_audit = new MWFEventAudit(this); m_audit.setAD_Org_ID(getAD_Org_ID());//Add by Hideaki Hagiwara