Author: apatel
Date: Wed Jun 24 06:50:24 2009
New Revision: 787925

URL: http://svn.apache.org/viewvc?rev=787925&view=rev
Log:
Fixed the setting partyId in dataSource service call.

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

Modified: 
ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml?rev=787925&r1=787924&r2=787925&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml 
(original)
+++ 
ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml 
Wed Jun 24 06:50:24 2009
@@ -110,13 +110,14 @@
             <set field="partyRelationshipCtx.roleTypeIdTo" 
value="ACCOUNT_LEAD"/>
             <set field="partyRelationshipCtx.partyRelationshipTypeId" 
value="LEAD_OWNER"/>
             <call-service service-name="createPartyRelationship" 
in-map-name="partyRelationshipCtx"/>
-        </if-not-empty>
+            <if-not-empty field="parameters.dataSourceId">
+                <set field="partyDataSourceCtx.partyId" 
from-field="partyGroupPartyId"/>
+                <set field="partyDataSourceCtx.dataSourceId" 
from-field="parameters.dataSourceId"/>
+                <call-service service-name="createPartyDataSource" 
in-map-name="partyDataSourceCtx"/>
+            </if-not-empty>
 
-        <if-not-empty field="parameters.dataSourceId">
-            <set field="partyDataSourceCtx.partyId" from-field="partyId"/>
-            <set field="partyDataSourceCtx.dataSourceId" 
from-field="parameters.dataSourceId"/>
-            <call-service service-name="createPartyDataSource" 
in-map-name="partyDataSourceCtx"/>
         </if-not-empty>
+
         <field-to-result field="leadContactPartyId" result-name="partyId" />
         <field-to-result field="partyGroupPartyId"/>
         <field-to-result field="parameters.roleTypeId" 
result-name="roleTypeId"/>


Reply via email to