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:26:05 UTC
svn commit: r1715475 -
/ofbiz/trunk/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
Author: ashish
Date: Sat Nov 21 07:26:05 2015
New Revision: 1715475
URL: http://svn.apache.org/viewvc?rev=1715475&view=rev
Log:
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/trunk/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java?rev=1715475&r1=1715474&r2=1715475&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java Sat Nov 21 07:26:05 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>>();