You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2015/03/21 14:13:56 UTC
svn commit: r1668263 -
/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/account/AccountServices.xml
Author: deepak
Date: Sat Mar 21 13:13:56 2015
New Revision: 1668263
URL: http://svn.apache.org/r1668263
Log:
Applied patch from jira issue OFBIZ-6201 - Error in Create New Account process of SFA
Thanks Arun Patidar for reporting the issue and providing the patch.
Modified:
ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/account/AccountServices.xml
Modified: ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/account/AccountServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/account/AccountServices.xml?rev=1668263&r1=1668262&r2=1668263&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/account/AccountServices.xml (original)
+++ ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/account/AccountServices.xml Sat Mar 21 13:13:56 2015
@@ -25,7 +25,13 @@
<field-to-result field="partyId"/>
<set field="createPartyRoleCtx.partyId" from-field="userLogin.partyId"/>
<set field="createPartyRoleCtx.roleTypeId" value="OWNER"/>
- <call-service service-name="createPartyRole" in-map-name="createPartyRoleCtx"/>
+ <entity-one entity-name="PartyRole" value-field="partyRole">
+ <field-map field-name="partyId" from-field="createPartyRoleCtx.partyId"/>
+ <field-map field-name="roleTypeId" from-field="createPartyRoleCtx.roleTypeId"/>
+ </entity-one>
+ <if-empty field="partyRole">
+ <call-service service-name="createPartyRole" in-map-name="createPartyRoleCtx"/>
+ </if-empty>
<set field="partyRelationshipCtx.partyIdFrom" from-field="userLogin.partyId"/>
<set field="partyRelationshipCtx.partyIdTo" from-field="partyId"/>
<set field="partyRelationshipCtx.roleTypeIdFrom" value="OWNER"/>