Author: ashish
Date: Sat Sep 17 13:20:39 2016
New Revision: 1761224

URL: http://svn.apache.org/viewvc?rev=1761224&view=rev
Log:
Fix for: Update Party Invitation does not honour "To Name" field.
(OFBIZ-8151)
Thanks: Ravi for the contribution.

Modified:
    ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml

Modified: 
ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml?rev=1761224&r1=1761223&r2=1761224&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml 
(original)
+++ ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml 
Sat Sep 17 13:20:39 2016
@@ -41,12 +41,14 @@ under the License.
     </simple-method>
     <simple-method method-name="updatePartyInvitation" 
short-description="Update a PartyInvitation">
         <entity-one entity-name="PartyInvitation" value-field="lookedUpValue"/>
+        <if-empty field="parameters.toName">
         <if-not-empty field="parameters.partyId">
             <entity-one entity-name="Person" value-field="person" 
auto-field-map="false">
                 <field-map field-name="partyId" 
from-field="parameters.partyId"/>
             </entity-one>
             <set field="parameters.toName" value="${person.firstName} 
${person.middleName} ${person.lastName}"/>
         </if-not-empty>
+        </if-empty>
         <set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
         <store-value value-field="lookedUpValue"/>
     </simple-method>


Reply via email to