You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2014/07/15 15:36:36 UTC
svn commit: r1610693 - in /ofbiz/branches/release13.07: ./
applications/content/script/org/ofbiz/content/content/ContentServices.xml
Author: jacopoc
Date: Tue Jul 15 13:36:36 2014
New Revision: 1610693
URL: http://svn.apache.org/r1610693
Log:
Applied fix from trunk for revision: 1610692
===
Fix for bug reported in OFBIZ-5338: prevent the risk of adding fields to the response map that are not part of the OUT attributes of the service definition.
Modified:
ofbiz/branches/release13.07/ (props changed)
ofbiz/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml
Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1610692
Modified: ofbiz/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml?rev=1610693&r1=1610692&r2=1610693&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml (original)
+++ ofbiz/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml Tue Jul 15 13:36:36 2014
@@ -778,10 +778,10 @@
<results-to-map map-name="persistOut"/>
</call-service>
- <iterate-map key="key" value="val" map="persistOut">
+ <set-service-fields service-name="createCommContentDataResource" mode="OUT" map="persistOut" to-map="filteredPersistOut"/>
+ <iterate-map key="key" value="val" map="filteredPersistOut">
<field-to-result field="val" result-name="${key}"/>
</iterate-map>
-
<set field="mapIn.contentId" from-field="persistOut.contentId"/>
<!-- <set field="mapIn.fromDate" from-field="nowTimestamp"/> -->
<set field="mapIn.communicationEventId" from-field="parameters.communicationEventId"/>