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

byersa-3
Author: byersa
Date: Tue Sep 18 23:43:52 2007
New Revision: 577167

URL: http://svn.apache.org/viewvc?rev=577167&view=rev
Log:
updateContentAssoc was failing when when contentId was set to contentIdTo which is what happens when updateTextContent is run.
Changed it to first look for parameters.contentIdFrom, then parameters.contentId.

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=577167&r1=577166&r2=577167&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 Tue Sep 18 23:43:52 2007
@@ -92,6 +92,7 @@
         <field-to-result field-name="assoc.fromDate" result-name="fromDate"/>
     </simple-method>
     <simple-method method-name="updateContentAssoc" short-description="Update a ContentAssoc Record">
+        <set field="contentId" from-field="parameters.contentIdFrom" default-value="parameters.contentId" />
         <entity-one entity-name="ContentAssoc" value-name="assoc" auto-field-map="true"/>
         <set-nonpk-fields value-name="assoc" map-name="parameters"/>