You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2022/04/22 09:59:44 UTC

[ofbiz-plugins] branch release22.01 updated: 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

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

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


The following commit(s) were added to refs/heads/release22.01 by this push:
     new 0a635267e 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
0a635267e is described below

commit 0a635267e5b224445df0f8ed554a0b02facc49de
Author: Nicolas Malin <ni...@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">