svn commit: r1761118 - in /ofbiz/trunk/applications/marketing: minilang/sfa/contact/ContactServices.xml servicedef/services.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1761118 - in /ofbiz/trunk/applications/marketing: minilang/sfa/contact/ContactServices.xml servicedef/services.xml

pranayp
Author: pranayp
Date: Sat Sep 17 05:42:51 2016
New Revision: 1761118

URL: http://svn.apache.org/viewvc?rev=1761118&view=rev
Log:
Fix for: Profile of contact person not shown on quick add of contact in SFA.
 (OFBIZ-7816)

Here 'createContact' service was not returning 'roleTypeId' and it is required to fetch the record from 'RoleTypeAndParty' entity.

Thanks: Aditi for reporting and providing the patch.

Modified:
    ofbiz/trunk/applications/marketing/minilang/sfa/contact/ContactServices.xml
    ofbiz/trunk/applications/marketing/servicedef/services.xml

Modified: ofbiz/trunk/applications/marketing/minilang/sfa/contact/ContactServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/minilang/sfa/contact/ContactServices.xml?rev=1761118&r1=1761117&r2=1761118&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/minilang/sfa/contact/ContactServices.xml (original)
+++ ofbiz/trunk/applications/marketing/minilang/sfa/contact/ContactServices.xml Sat Sep 17 05:42:51 2016
@@ -63,6 +63,7 @@
         <set field="partyRelationCtx.partyRelationshipTypeId" value="CONTACT_REL"/>
         <call-service service-name="createPartyRelationship" in-map-name="partyRelationCtx"/>
         <field-to-result field="partyId"/>
+        <field-to-result field="parameters.roleTypeId" result-name="roleTypeId"/>
     </simple-method>
 
     <simple-method method-name="mergeContacts" short-description="Merge two Contacts">

Modified: ofbiz/trunk/applications/marketing/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/servicedef/services.xml?rev=1761118&r1=1761117&r2=1761118&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/marketing/servicedef/services.xml Sat Sep 17 05:42:51 2016
@@ -473,6 +473,7 @@ under the License.
         </auto-attributes>
         <attribute name="partyId" type="String" mode="OUT"/>
         <attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
+        <attribute name="roleTypeId" type="String" mode="OUT" optional="true"/>
         <attribute name="emailAddress" type="String" mode="IN" optional="true"/>
         <attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
         <attribute name="quickAdd" type="String" mode="IN" optional="true"/>