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 2014/09/22 18:59:26 UTC

svn commit: r1626839 - /ofbiz/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml

Author: ashish
Date: Mon Sep 22 16:59:26 2014
New Revision: 1626839

URL: http://svn.apache.org/r1626839
Log:
Applied bug fix from trunk r1626402.
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/branches/release13.07/applications/content/script/org/ofbiz/content/content/ContentServices.xml

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=1626839&r1=1626838&r2=1626839&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 Mon Sep 22 16:59:26 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">