svn commit: r1529415 - in /ofbiz/trunk/applications/content/script/org/ofbiz/content: compdoc/CompDocServices.xml content/ContentServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1529415 - in /ofbiz/trunk/applications/content/script/org/ofbiz/content: compdoc/CompDocServices.xml content/ContentServices.xml

jleroux@apache.org
Author: jleroux
Date: Sat Oct  5 08:57:41 2013
New Revision: 1529415

URL: http://svn.apache.org/r1529415
Log:
Fixes "createCommContentDataResource service fails" https://issues.apache.org/jira/browse/OFBIZ-5338

Modified:
    ofbiz/trunk/applications/content/script/org/ofbiz/content/compdoc/CompDocServices.xml
    ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml

Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/compdoc/CompDocServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/compdoc/CompDocServices.xml?rev=1529415&r1=1529414&r2=1529415&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/compdoc/CompDocServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/compdoc/CompDocServices.xml Sat Oct  5 08:57:41 2013
@@ -198,6 +198,9 @@ under the License.
         </call-service>
         <!--  put all the result fields in this service's result -->
         <iterate-map map="pResults" key="key" value="val">
+            <if-compare field="key" operator="equals" value="responseMessage">
+                <continue/>
+            </if-compare>
             <field-to-result field="val" result-name="${key}"/>
         </iterate-map>
 

Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml?rev=1529415&r1=1529414&r2=1529415&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml Sat Oct  5 08:57:41 2013
@@ -779,11 +779,13 @@
         </call-service>
 
         <iterate-map key="key" value="val" map="persistOut">
+            <if-compare field="key" operator="equals" value="responseMessage">
+                <continue/>
+            </if-compare>
             <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"/>
         <set field="mapIn.sequenceNum"  from-field="parameters.sequenceNum"/>
         <call-service service-name="createCommEventContentAssoc" in-map-name="mapIn">
@@ -817,6 +819,9 @@
         </call-service>
 
         <iterate-map key="key" value="val" map="persistOut">
+            <if-compare field="key" operator="equals" value="responseMessage">
+                <continue/>
+            </if-compare>
             <field-to-result field="val" result-name="${key}"/>
         </iterate-map>
 
@@ -837,7 +842,7 @@
 
     <!-- This service would primarily be used to update the thruDate field.
         -->
-    <simple-method method-name="updateCommEventContentAssoc" short-description="Create CommEventContentAssoc">
+    <simple-method method-name="updateCommEventContentAssoc" short-description="Update CommEventContentAssoc">
         <make-value entity-name="CommEventContentAssoc" value-field="pkCommEventContentAssoc"/>
         <set-pk-fields value-field="pkCommEventContentAssoc" map="parameters"/>
         <find-by-primary-key value-field="commEventContentAssoc" map="pkCommEventContentAssoc" entity-name="CommEventContentAssoc"/>