svn commit: r1844954 - in /ofbiz/ofbiz-framework/branches/release17.12/applications/content: config/ContentUiLabels.xml minilang/content/ContentServices.xml

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

svn commit: r1844954 - in /ofbiz/ofbiz-framework/branches/release17.12/applications/content: config/ContentUiLabels.xml minilang/content/ContentServices.xml

adityasharma
Author: adityasharma
Date: Sat Oct 27 11:39:45 2018
New Revision: 1844954

URL: http://svn.apache.org/viewvc?rev=1844954&view=rev
Log:
Fixed: updateContent service does not return an error/success message
(OFBIZ-9743)
Additional change:
Added success message to createContent and removeContent service too.
Thanks Rohit Rai for reporting the issue.

Modified:
    ofbiz/ofbiz-framework/branches/release17.12/applications/content/config/ContentUiLabels.xml
    ofbiz/ofbiz-framework/branches/release17.12/applications/content/minilang/content/ContentServices.xml

Modified: ofbiz/ofbiz-framework/branches/release17.12/applications/content/config/ContentUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/applications/content/config/ContentUiLabels.xml?rev=1844954&r1=1844953&r2=1844954&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/applications/content/config/ContentUiLabels.xml (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/applications/content/config/ContentUiLabels.xml Sat Oct 27 11:39:45 2018
@@ -955,6 +955,9 @@
         <value xml:lang="zh">内容</value>
         <value xml:lang="zh-TW">內容</value>
     </property>
+    <property key="ContentContentCreatedSuccessfully">
+        <value xml:lang="en">Content created 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>
@@ -965,6 +968,9 @@
         <value xml:lang="zh">在${serviceName}中创建内容时出错</value>
         <value xml:lang="zh-TW">在${serviceName}中新建內容時出錯</value>
     </property>
+    <property key="ContentContentDeletedSuccessfully">
+        <value xml:lang="en">Content deleted successfully.</value>
+    </property>
     <property key="ContentContentIdOrUploadFileIsMissing">
         <value xml:lang="en">Content Id or Upload file is missing.</value>
         <value xml:lang="fr">La référence du document ou le fichier à charger est manquant.</value>
@@ -1061,6 +1067,9 @@
         <value xml:lang="zh">内容到(contentTo) ${contentTo}/内容自(contentFrom) ${contentFrom} 是空的(null)</value>
         <value xml:lang="zh-TW">內容_迄(contentTo) ${contentTo}/內容_èµ·(contentFrom) ${contentFrom} 是空的(null)</value>
     </property>
+    <property key="ContentContentUpdatedSuccessfully">
+        <value xml:lang="en">Content updated successfully.</value>
+    </property>
     <property key="ContentContentUpdatingError">
         <value xml:lang="en">Error updating content in ${serviceName}</value>
         <value xml:lang="fr">Erreur lors de la mise à jour du document ${serviceName}</value>

Modified: ofbiz/ofbiz-framework/branches/release17.12/applications/content/minilang/content/ContentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/applications/content/minilang/content/ContentServices.xml?rev=1844954&r1=1844953&r2=1844954&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/applications/content/minilang/content/ContentServices.xml (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/applications/content/minilang/content/ContentServices.xml Sat Oct 27 11:39:45 2018
@@ -50,6 +50,8 @@
         <create-value value-field="content"/>
 
         <field-to-result field="content.contentId" result-name="contentId"/>
+        <check-errors/>
+        <property-to-field property="ContentContentCreatedSuccessfully" resource="ContentUiLabels" field="successMessage"/>
     </simple-method>
     <simple-method method-name="updateContent" short-description="Update a Content Record">
         <entity-one entity-name="Content" value-field="content" auto-field-map="true"/>
@@ -61,6 +63,8 @@
 
         <store-value value-field="content"/>
         <field-to-result field="content.contentId" result-name="contentId"/>
+        <check-errors/>
+        <property-to-field property="ContentContentUpdatedSuccessfully" resource="ContentUiLabels" field="successMessage"/>
     </simple-method>
     <simple-method method-name="removeContent" short-description="Remove a Content Record">
         <make-value entity-name="Content" value-field="lookupKeyValue"/>
@@ -68,6 +72,8 @@
         <find-by-primary-key entity-name="Content" map="lookupKeyValue" value-field="content"/>
 
         <remove-value value-field="content"/>
+        <check-errors/>
+        <property-to-field property="ContentContentDeletedSuccessfully" resource="ContentUiLabels" field="successMessage"/>
     </simple-method>
     <simple-method method-name="removeContentAndRelated" short-description="Remove a Content Record, related resource(s) and assocs.">
         <entity-one entity-name="Content" value-field="content"/>