You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2020/01/25 07:39:51 UTC

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

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

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


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

commit 2cb33566ab7807e7aaf49224aa64640cc11fb619
Author: Pawan Verma <pa...@hotwaxsystems.com>
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">