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. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1844954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user