Author: ashish Date: Sun Jul 3 06:18:30 2016 New Revision: 1751118 URL: http://svn.apache.org/viewvc?rev=1751118&view=rev Log: 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/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=1751118&r1=1751117&r2=1751118&view=diff ============================================================================== --- ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml (original) +++ ofbiz/trunk/applications/party/minilang/party/PartyInvitationServices.xml Sun Jul 3 06:18:30 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"/>