From 9c62f0254b2ee972fbba75f1aec45632f7d73a1f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 19 Nov 2014 15:49:36 -0500 Subject: [PATCH] IDEMPIERE-2326 Deadlock on workflow email after complete --- org.adempiere.base/src/org/compiere/model/MClient.java | 2 +- org.adempiere.base/src/org/compiere/wf/MWFActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MClient.java b/org.adempiere.base/src/org/compiere/model/MClient.java index 5aa4c532ce..b31296eb92 100644 --- a/org.adempiere.base/src/org/compiere/model/MClient.java +++ b/org.adempiere.base/src/org/compiere/model/MClient.java @@ -731,7 +731,7 @@ public class MClient extends X_AD_Client msg = email.send(); } // - X_AD_UserMail um = new X_AD_UserMail(getCtx(), 0, null); + X_AD_UserMail um = new X_AD_UserMail(getCtx(), 0, to.get_TrxName()); um.setClientOrg(this); um.setAD_User_ID(to.getAD_User_ID()); um.setSubject(email.getSubject()); diff --git a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java index 6aea61a1ae..d38fc37c96 100644 --- a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java +++ b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java @@ -1691,7 +1691,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable { if (AD_User_ID != 0) { - MUser user = MUser.get(getCtx(), AD_User_ID); + MUser user = new MUser(getCtx(), AD_User_ID, get_TrxName()); email = user.getEMail(); if (email != null && email.length() > 0) {