Author: byersa
Date: Fri Sep 28 02:18:26 2007
New Revision: 580263
URL:
http://svn.apache.org/viewvc?rev=580263&view=revLog:
Fixing errors in create/updateContentAssoc that I recently added.
Was not putting interpolation braces around 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=580263&r1=580262&r2=580263&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 Fri Sep 28 02:18:26 2007
@@ -76,6 +76,7 @@
<make-value value-name="assoc" entity-name="ContentAssoc"/>
<set-nonpk-fields value-name="assoc" map-name="parameters"/>
<set-pk-fields value-name="assoc" map-name="parameters"/>
+ <set field="assoc.contentId" from-field="parameters.contentIdFrom" default-value="${parameters.contentId}" />
<now-timestamp-to-env env-name="nowTimestamp"/>
<if-empty field-name="assoc.fromDate">
@@ -92,7 +93,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" />
+ <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"/>