[ofbiz-framework] branch release18.12 updated: Fixed: Same content uploaded twice, if refresh the page after uploading the content (OFBIZ-11171)

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

[ofbiz-framework] branch release18.12 updated: Fixed: Same content uploaded twice, if refresh the page after uploading the content (OFBIZ-11171)

Pawan Verma-2
This is an automated email from the ASF dual-hosted git repository.

pawan pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new b486204  Fixed: Same content uploaded twice, if refresh the page after uploading the content (OFBIZ-11171)
b486204 is described below

commit b4862040bc2e7f42e551cb0f539350ee1e1dcc64
Author: Pawan Verma <[hidden email]>
AuthorDate: Sat Jan 25 13:09:27 2020 +0530

    Fixed: Same content uploaded twice, if refresh the page after uploading the content
    (OFBIZ-11171)
   
    Thanks, Humera Khan and Shubham Goswami for your contribution.
---
 applications/party/webapp/partymgr/WEB-INF/controller.xml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/applications/party/webapp/partymgr/WEB-INF/controller.xml b/applications/party/webapp/partymgr/WEB-INF/controller.xml
index c7400ed..df0c7de 100644
--- a/applications/party/webapp/partymgr/WEB-INF/controller.xml
+++ b/applications/party/webapp/partymgr/WEB-INF/controller.xml
@@ -990,8 +990,12 @@ under the License.
     <request-map uri="uploadPartyContent">
         <security auth="true" https="true"/>
         <event type="service" invoke="uploadPartyContentFile"/>
-        <response name="success" type="view" value="viewprofile"/>
-        <response name="error" type="view" value="viewprofile"/>
+        <response name="success" type="request-redirect" value="viewprofile">
+            <redirect-parameter name="partyId"/>
+        </response>
+        <response name="error" type="request-redirect" value="viewprofile">
+            <redirect-parameter name="partyId"/>
+        </response>
     </request-map>
 
     <request-map uri="partyContentList">