svn commit: r1816637 - /ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1816637 - /ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml

jleroux@apache.org
Author: jleroux
Date: Wed Nov 29 15:38:57 2017
New Revision: 1816637

URL: http://svn.apache.org/viewvc?rev=1816637&view=rev
Log:
Improved: Remove unused service checkContentAssocIds and its usage
(OFBIZ-9999)

All cases were not handled if contentAssocTypeId is also passed while creating
a content.

Thanks: Suraj Khurana

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=1816637&r1=1816636&r2=1816637&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml Wed Nov 29 15:38:57 2017
@@ -138,6 +138,8 @@ under the License.
         <action service="createContentAssoc" mode="sync" run-as-user="system" result-to-result="true" />
     </eca>
     <eca service="createContent" event="commit">
+        <set field-name="contentId" env-name="contentIdFrom"/>
+        <set field-name="contentIdTo" env-name="contentId"/>
         <condition field-name="contentAssocTypeId" operator="is-not-empty"/>
         <condition field-name="contentId" operator="is-not-empty"/>
         <action service="createContentAssoc" mode="sync" run-as-user="system" result-to-result="true" />