Author: hansbak
Date: Wed Aug 19 03:49:50 2009
New Revision: 805655
URL:
http://svn.apache.org/viewvc?rev=805655&view=revLog:
copy attached documents on email forward
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml?rev=805655&r1=805654&r2=805655&view=diff==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml Wed Aug 19 03:49:50 2009
@@ -228,6 +228,21 @@
<set field="commRole.statusId" value="COM_ROLE_COMPLETED"/>
<call-service service-name="createCommunicationEventRoleWithoutPermission" in-map-name="commRole"/>
</if-not-empty>
+
+ <!-- Check Attach File For Forward Email-->
+ <if-compare field="parameters.action" value="FORWARD" operator="equals">
+ <entity-and entity-name="CommEventContentAssoc" list="commEventContentAssoc">
+ <field-map field-name="communicationEventId" from-field="parameters.origCommEventId"/>
+ </entity-and>
+ <iterate entry="createcommEventContentAssoc" list="commEventContentAssoc">
+ <if-not-empty field="createcommEventContentAssoc">
+ <!-- Create communication event and content association -->
+ <set field="contentAssoc.contentId" from-field="createcommEventContentAssoc.contentId"/>
+ <set field="contentAssoc.communicationEventId" from-field="newEntity.communicationEventId"/>
+ <call-service service-name="createCommEventContentAssoc" in-map-name="contentAssoc"></call-service>
+ </if-not-empty>
+ </iterate>
+ </if-compare>
</simple-method>
<simple-method method-name="updateCommunicationEvent"