You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2015/11/21 08:48:39 UTC
svn commit: r1715476 -
/ofbiz/branches/release14.12/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
Author: ashish
Date: Sat Nov 21 07:48:39 2015
New Revision: 1715476
URL: http://svn.apache.org/viewvc?rev=1715476&view=rev
Log:
Applied bug fix from trunk revision: 1715475.
==========================================================================
Applied bug fix from jira issue - OFBIZ-6698 - sendCommEventAsEmail does not filter CommEventContentAssoc.
Thanks Gareth for reporting the issue and thanks Rohit for providing the patch for this.
==========================================================================
Modified:
ofbiz/branches/release14.12/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
Modified: ofbiz/branches/release14.12/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java?rev=1715476&r1=1715475&r2=1715476&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java (original)
+++ ofbiz/branches/release14.12/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java Sat Nov 21 07:48:39 2015
@@ -125,7 +125,7 @@ public class CommunicationEventServices
// check for attachments
boolean isMultiPart = false;
- List <GenericValue> comEventContents = communicationEvent.getRelated("CommEventContentAssoc", null, null, false);
+ List <GenericValue> comEventContents = EntityQuery.use(delegator).from("CommEventContentAssoc").where("communicationEventId", communicationEventId).filterByDate().queryList();
if (UtilValidate.isNotEmpty(comEventContents)) {
isMultiPart = true;
List<Map<String, ? extends Object>> bodyParts = new LinkedList<Map<String,? extends Object>>();