Author: ashish
Date: Sun Jul  3 06:22:06 2016
New Revision: 1751119

URL: http://svn.apache.org/viewvc?rev=1751119&view=rev
Log:
Applied patch from trunk r1751118.
====================================
Applied patch from jira issue - OFBIZ-7599 - Entered To Name is not getting 
stored when creating Party Invitation.
Thanks Ravi for the contribution.

Modified:
    
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml

Modified: 
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml?rev=1751119&r1=1751118&r2=1751119&view=diff
==============================================================================
--- 
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml
 (original)
+++ 
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml
 Sun Jul  3 06:22:06 2016
@@ -26,12 +26,14 @@ under the License.
         <make-value entity-name="PartyInvitation" value-field="newEntity"/>
         <sequenced-id sequence-name="PartyInvitation" 
field="newEntity.partyInvitationId"/>
         <field-to-result field="newEntity.partyInvitationId" 
result-name="partyInvitationId"/>
+        <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>
         <now-timestamp field="nowTimestamp"/>
         <set from-field="nowTimestamp" field="newEntity.lastInviteDate"/>
         <set-nonpk-fields map="parameters" value-field="newEntity"/>


Reply via email to