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

nmalin 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 070c3c09d Fixed: Request createWorkEffortPartyAssign generates an 
error (OFBIZ-12556) The request createWorkEffortPartyAssign is called after 
submitting the form AddWorkEffortPartyAssign, when the user wants to add a 
party to a project. This raise an error because it removed from workeffort 
component after the screen dynamising Thanks to Pierre Smith for raise this 
issue and Martin Naumann for the fix patch
070c3c09d is described below

commit 070c3c09d57eea2ce51b024d1b8ec094e0a44cf6
Author: Nicolas Malin <nicolas.ma...@nereide.fr>
AuthorDate: Fri Apr 22 11:58:24 2022 +0200

    Fixed: Request createWorkEffortPartyAssign generates an error (OFBIZ-12556)
    The request createWorkEffortPartyAssign is called after submitting the form 
AddWorkEffortPartyAssign, when the user wants to add a party to a project. This 
raise an error because it removed from workeffort component after the screen 
dynamising
    Thanks to Pierre Smith for raise this issue and Martin Naumann for the fix 
patch
---
 projectmgr/webapp/projectmgr/WEB-INF/controller.xml | 10 ++++++++--
 projectmgr/widget/forms/ProjectForms.xml            |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/projectmgr/webapp/projectmgr/WEB-INF/controller.xml 
b/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
index db565690d..2b332c67d 100644
--- a/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
+++ b/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
@@ -569,8 +569,14 @@
     <request-map uri="addWorkEffortPartyAssign">
         <security https="true" auth="true"/>
         <event type="service" invoke="assignPartyToWorkEffort"/>
-        <response name="success" type="view" value="listResourcesProject"/>
-        <response name="error" type="view" value="listResourcesProject"/>
+        <response name="success" type="view" 
value="ListWorkEffortPartyAssigns"/>
+        <response name="error" type="view" value="ListWorkEffortPartyAssigns"/>
+    </request-map>
+    <request-map uri="deleteWorkEffortPartyAssign">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="deletePartyToWorkEffortAssignment"/>
+        <response name="success" type="view" 
value="ListWorkEffortPartyAssigns"/>
+        <response name="error" type="view" value="ListWorkEffortPartyAssigns"/>
     </request-map>
     <request-map uri="addTaskPartyAssign">
         <security https="true" auth="true"/>
diff --git a/projectmgr/widget/forms/ProjectForms.xml 
b/projectmgr/widget/forms/ProjectForms.xml
index be6094afb..df9b0a4c6 100644
--- a/projectmgr/widget/forms/ProjectForms.xml
+++ b/projectmgr/widget/forms/ProjectForms.xml
@@ -579,7 +579,7 @@
         <field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display 
type="date-time"/></field>
         <field name="expireButton" widget-style="smallSubmit"  
use-when="${thruDate==null || (thruDate &gt; nowTimestamp)}"><submit 
button-type="button"/></field>
     </form>
-    <form name="AddWorkEffortPartyAssign" target="createWorkEffortPartyAssign" 
title="" type="single"
+    <form name="AddWorkEffortPartyAssign" target="addWorkEffortPartyAssign" 
title="" type="single"
         header-row-style="header-row" default-table-style="basic-table">
         <actions>
             <entity-condition entity-name="PartyRoleAndPartyDetail" 
distinct="true" list="projectResources">

Reply via email to