svn commit: r1626402 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/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: r1626402 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml

ashish-18
Author: ashish
Date: Sat Sep 20 08:51:16 2014
New Revision: 1626402

URL: http://svn.apache.org/r1626402
Log:
Based on Adrian's comment on dev mailing list, Providing better fix for the issue report at - OFBIZ-5739 - copyContentAndElectronicTextandAssoc service broken.
Thanks Deepak for the contribution.  

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

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=1626402&r1=1626401&r2=1626402&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 Sep 20 08:51:16 2014
@@ -159,7 +159,11 @@
     </simple-method>
 
     <simple-method method-name="copyContentAndElectronicTextandAssoc" short-description="copy a content, electronic text and assocs and set status in progress">
-        <entity-one entity-name="Content" value-field="content"/>
+        <set-service-fields service-name="getContent" map="parameters" to-map="getC"/>
+        <call-service service-name="getContent" in-map-name="getC">
+            <result-to-field result-name="view" field="content"/>
+        </call-service>
+        <clone-value value-field="content" new-value-field="content"/>
         <if-not-empty field="content.dataResourceId">
             <set-service-fields service-name="getElectronicText" map="content" to-map="getEt"/>
             <call-service service-name="getElectronicText" in-map-name="getEt">