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) {