Author: deepak
Date: Tue Dec 19 17:55:49 2017
New Revision: 1818693

URL: http://svn.apache.org/viewvc?rev=1818693&view=rev
Log:
Fixed: service:createContent fails to create proper entity:ContentAssoc entry 
(OFBIZ-10098)
Thanks Wai for your contribution

Modified:
    ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml?rev=1818693&r1=1818692&r2=1818693&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml 
(original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml Tue 
Dec 19 17:55:49 2017
@@ -137,11 +137,12 @@ under the License.
         <condition field-name="contentIdTo" operator="is-not-empty"/>
         <action service="createContentAssoc" mode="sync" run-as-user="system" 
result-to-result="true" />
     </eca>
+    
     <eca service="createContent" event="commit">
         <condition field-name="contentAssocTypeId" operator="is-not-empty"/>
         <condition field-name="contentIdFrom" operator="is-not-empty"/>
-        <set field-name="contentId" env-name="contentIdFrom"/>
         <set field-name="contentIdTo" env-name="contentId"/>
+        <set field-name="contentId" env-name="contentIdFrom"/>
         <action service="createContentAssoc" mode="sync" run-as-user="system" 
result-to-result="true" />
     </eca>
 


Reply via email to