IDEMPIERE-2326 Deadlock on workflow email after complete

This commit is contained in:
Carlos Ruiz 2014-11-19 15:49:36 -05:00
parent 1ed3200c50
commit 9c62f0254b
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

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