Author: adityasharma
Date: Sat Oct 27 11:09:48 2018 New Revision: 1844953 URL: http://svn.apache.org/viewvc?rev=1844953&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/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=1844953&r1=1844952&r2=1844953&view=diff ============================================================================== --- ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml (original) +++ ofbiz/branches/release16.11/applications/content/config/ContentUiLabels.xml Sat Oct 27 11:09:48 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/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=1844953&r1=1844952&r2=1844953&view=diff ============================================================================== --- ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml (original) +++ ofbiz/branches/release16.11/applications/content/minilang/content/ContentServices.xml Sat Oct 27 11:09:48 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"/> |
Free forum by Nabble | Edit this page |