Author: adityasharma
Date: Sat Dec 22 05:29:48 2018
New Revision: 1849517
URL:
http://svn.apache.org/viewvc?rev=1849517&view=revLog:
Fixed: updateContentAssoc does not return success/error message to the UI.
(OFBIZ-9746)
Thanks Rohit Rai for reporting the issue and Jacques Le Roux, Devanshu Vyas Rishi Solanki for the discussion.
Modified:
ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml
ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml
Modified: ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml?rev=1849517&r1=1849516&r2=1849517&view=diff==============================================================================
--- ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml (original)
+++ ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml Sat Dec 22 05:29:48 2018
@@ -958,6 +958,12 @@
<property key="ContentContentCreatedSuccessfully">
<value xml:lang="en">Content created successfully.</value>
</property>
+ <property key="ContentContentAssocCreatedSuccessfully">
+ <value xml:lang="en">Content Association created successfully.</value>
+ </property>
+ <property key="ContentContentAssocUpdatedSuccessfully">
+ <value xml:lang="en">Content Association updated successfully.</value>
+ </property>
<property key="ContentContentCreatingError">
<value xml:lang="en">Error creating content in ${serviceName}</value>
<value xml:lang="fr">Erreur de création du document dans le service ${serviceName}</value>
Modified: ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml?rev=1849517&r1=1849516&r2=1849517&view=diff==============================================================================
--- ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml (original)
+++ ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml Sat Dec 22 05:29:48 2018
@@ -118,6 +118,8 @@
<create-value value-field="assoc"/>
<log level="info" message="assoc: ${assoc}"/>
<field-to-result field="assoc.fromDate" result-name="fromDate"/>
+ <check-errors/>
+ <property-to-field property="ContentContentAssocCreatedSuccessfully" resource="ContentUiLabels" field="successMessage"/>
</simple-method>
<simple-method method-name="updateContentAssoc" short-description="Update a ContentAssoc Record">
<set field="contentId" from-field="parameters.contentIdFrom" default-value="${parameters.contentId}"/>
@@ -129,6 +131,8 @@
<set field="content.lastModifiedDate" from-field="nowTimestamp"/>
<store-value value-field="assoc"/>
+ <check-errors/>
+ <property-to-field property="ContentContentAssocUpdatedSuccessfully" resource="ContentUiLabels" field="successMessage"/>
</simple-method>
<!-- update content; just status -->