Author: deepak Date: Sat Dec 23 08:40:56 2017 New Revision: 1819120 URL: http://svn.apache.org/viewvc?rev=1819120&view=rev Log: Fixed: service:updateTextContent fails (OFBIZ-10112) Thanks Wai for your contribution
Modified: ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services_content.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=1819120&r1=1819119&r2=1819120&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/content/servicedef/secas.xml Sat Dec 23 08:40:56 2017 @@ -166,7 +166,10 @@ under the License. <eca service="updateContent" event="commit"> <condition field-name="contentAssocTypeId" operator="is-not-empty"/> <condition field-name="contentId" operator="is-not-empty"/> + <condition field-name="contentIdFrom" operator="is-not-empty"/> <condition field-name="fromDate" operator="is-not-empty"/> + <set field-name="contentIdTo" env-name="contentId"/> + <set field-name="contentId" env-name="contentIdFrom"/> <action service="updateContentAssoc" mode="sync" run-as-user="system"/> </eca> <eca service="updateContent" event="commit"> Modified: ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services_content.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services_content.xml?rev=1819120&r1=1819119&r2=1819120&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services_content.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services_content.xml Sat Dec 23 08:40:56 2017 @@ -135,6 +135,7 @@ <auto-attributes entity-name="Content" include="pk" mode="INOUT" optional="false"/> <auto-attributes entity-name="Content" include="nonpk" mode="IN" optional="true"/> <attribute name="contentPurposeTypeId" type="String" mode="IN" optional="true"/> + <attribute name="contentIdFrom" type="String" mode="IN" optional="true" /> <!-- TODO: the following fields are depricated; but will not be removed until all services and callers are updated --> <attribute mode="IN" name="targetOperationList" optional="true" type="List"/> <attribute mode="IN" name="skipPermissionCheck" optional="true" type="String"/>