You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2017/04/13 16:57:49 UTC

svn commit: r1791278 - in /ofbiz/branches/release16.11: ./ applications/workeffort/minilang/workeffort/WorkEffortSimpleServices.xml

Author: jleroux
Date: Thu Apr 13 16:57:49 2017
New Revision: 1791278

URL: http://svn.apache.org/viewvc?rev=1791278&view=rev
Log:
"Applied fix from trunk framework for revision: 1791277  " 
------------------------------------------------------------------------
r1791277 | jleroux | 2017-04-13 18:56:58 +0200 (jeu. 13 avr. 2017) | 19 lignes

Fixed: WorkEffort shows error on party assignment
(OFBIZ-9314)

Steps to reproduce:
Go to workEffort component.
2) Create a new task from New Task button 
    https://localhost:8443/workeffort/control/mytasks .
3) After creating Task with required fields, click on parties tab.
4) Screen for WorkEffort Party Assignment will be displayed.
5) Choose any party and role.
6) Click on Add. Error will be displayed.

Solution:
Any party is assigned to a WorkEffort on specific role, hence it is necessary 
that party should be in that role first (PartyRole).
Added code which make sure the party should be in given role (i.e service call 
to ensurePartyRole).

Thanks: Jagpreet Kaur
------------------------------------------------------------------------


Modified:
    ofbiz/branches/release16.11/   (props changed)
    ofbiz/branches/release16.11/applications/workeffort/minilang/workeffort/WorkEffortSimpleServices.xml

Propchange: ofbiz/branches/release16.11/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Apr 13 16:57:49 2017
@@ -10,5 +10,5 @@
 /ofbiz/branches/json-integration-refactoring:1634077-1635900
 /ofbiz/branches/multitenant20100310:921280-927264
 /ofbiz/branches/release13.07:1547657
-/ofbiz/ofbiz-framework/trunk:1783202,1783388,1784549,1784558,1784708,1785882,1785925,1786079,1786214,1786525,1787047,1787133,1787176,1787535,1787906-1787911,1787949,1789665,1789863,1789874,1790810
+/ofbiz/ofbiz-framework/trunk:1783202,1783388,1784549,1784558,1784708,1785882,1785925,1786079,1786214,1786525,1787047,1787133,1787176,1787535,1787906-1787911,1787949,1789665,1789863,1789874,1790810,1791277
 /ofbiz/trunk:1770481,1770490,1770540,1771440,1771448,1771516,1771935,1772346,1772880,1774772,1775441,1779724,1780659,1781109,1781125,1781979,1782498,1782520

Modified: ofbiz/branches/release16.11/applications/workeffort/minilang/workeffort/WorkEffortSimpleServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/workeffort/minilang/workeffort/WorkEffortSimpleServices.xml?rev=1791278&r1=1791277&r2=1791278&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/workeffort/minilang/workeffort/WorkEffortSimpleServices.xml (original)
+++ ofbiz/branches/release16.11/applications/workeffort/minilang/workeffort/WorkEffortSimpleServices.xml Thu Apr 13 16:57:49 2017
@@ -346,6 +346,9 @@ under the License.
         </if-not-empty>
         <check-errors/>
 
+        <set field="ensurePartyRoleCtx.partyId" from-field="parameters.partyId"/>
+        <set field="ensurePartyRoleCtx.roleTypeId" from-field="parameters.roleTypeId"/>
+        <call-service service-name="ensurePartyRole" in-map-name="ensurePartyRoleCtx"/>
         <make-value value-field="newEntity" entity-name="WorkEffortPartyAssignment"/>
 
         <set-pk-fields map="parameters" value-field="newEntity"/>