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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new eac1fb508 Improved: projectView doesn't show the newly created project 
after creation ( (OFBIZ-12601)
eac1fb508 is described below

commit eac1fb508f0a24e5ad457aaa347e6f8088cbebe6
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Wed Apr 20 09:36:20 2022 +0200

    Improved: projectView doesn't show the newly created project after creation 
( (OFBIZ-12601)
    
    "Previously" the project creation directly lead to the ProjectView screen 
within
    the context of the newly created project. In this way users were able to
    directly add e.g. resources to the newly created project without selecting 
it
    again within the FindProject screen. Within the patch provided I just 
copied the
    success handling from the updateProject request mapping which seems to 
restore
    the initial functionality again.
    
    jleroux: Even if I don't know to what to compare in past, I indeed see no
    reasons to not do so.
    
    Thanks: Sixty One for the patch
---
 projectmgr/webapp/projectmgr/WEB-INF/controller.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projectmgr/webapp/projectmgr/WEB-INF/controller.xml 
b/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
index b977df749..db565690d 100644
--- a/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
+++ b/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
@@ -82,7 +82,7 @@
     <request-map uri="createProject">
         <security https="true" auth="true"/>
         <event type="service" invoke="createProject"/>
-        <response name="success" type="request-redirect-noparam" 
value="projectView"/>
+        <response name="success" type="view" value="projectView"/>
         <response name="error" type="view" value="EditProject"/>
     </request-map>
     <request-map uri="updateProject">
@@ -679,7 +679,7 @@
         <response name="success" type="view" 
value="EditWorkEffortSurveyAppls"/>
         <response name="error" type="view" value="EditWorkEffortSurveyAppls"/>
     </request-map>
-    
+
     <!-- end of request mappings -->
 
     <!-- View Mappings -->

Reply via email to