You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pr...@apache.org on 2016/07/16 13:11:26 UTC

svn commit: r1752954 - /ofbiz/trunk/applications/marketing/minilang/sfa/lead/LeadServices.xml

Author: pranayp
Date: Sat Jul 16 13:11:26 2016
New Revision: 1752954

URL: http://svn.apache.org/viewvc?rev=1752954&view=rev
Log:
[OFBIZ-7843] Fixed issue in SFA Lead Profile view when group is provided on quick add form. As the 'roleTypeId' 'ACCOUNT_LEAD' used on invocation of service 'createPartyGroupRoleAndContactMechs', hence placed it inside the condition to set it only when it is invoked, so that correct 'roleTypeId'  is returned. 
Thanks Aditi Patidar for your contribution.

Modified:
    ofbiz/trunk/applications/marketing/minilang/sfa/lead/LeadServices.xml

Modified: ofbiz/trunk/applications/marketing/minilang/sfa/lead/LeadServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/minilang/sfa/lead/LeadServices.xml?rev=1752954&r1=1752953&r2=1752954&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/minilang/sfa/lead/LeadServices.xml (original)
+++ ofbiz/trunk/applications/marketing/minilang/sfa/lead/LeadServices.xml Sat Jul 16 13:11:26 2016
@@ -74,8 +74,8 @@
         <!-- Now create PartyGroup corresponding to the companyName, if its not null and then set up relationship of Person and PartyGroup as Employee and title -->
         <if-not-empty field="parameters.groupName">
             <set field="parameters.partyTypeId" value="PARTY_GROUP"/>
-            <set field="parameters.roleTypeId" value="ACCOUNT_LEAD"/>
             <if-empty field="leadContactPartyId">
+                <set field="parameters.roleTypeId" value="ACCOUNT_LEAD"/>
                 <!-- In case we have any contact mech data then associate with party group  -->
                 <call-simple-method method-name="createPartyGroupRoleAndContactMechs" xml-resource="component://party/minilang/party/PartySimpleMethods.xml"/>
                 <set field="partyGroupPartyId" from-field="partyId"/>