svn commit: r1761120 - in /ofbiz/branches/release14.12/applications/marketing: script/org/ofbiz/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: r1761120 - in /ofbiz/branches/release14.12/applications/marketing: script/org/ofbiz/sfa/contact/ContactServices.xml servicedef/services.xml

pranayp
Author: pranayp
Date: Sat Sep 17 05:55:12 2016
New Revision: 1761120

URL: http://svn.apache.org/viewvc?rev=1761120&view=rev
Log:
Applied fix from trunk for revision: 1761118.

--------------------------------------------
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/branches/release14.12/applications/marketing/script/org/ofbiz/sfa/contact/ContactServices.xml
    ofbiz/branches/release14.12/applications/marketing/servicedef/services.xml

Modified: ofbiz/branches/release14.12/applications/marketing/script/org/ofbiz/sfa/contact/ContactServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/marketing/script/org/ofbiz/sfa/contact/ContactServices.xml?rev=1761120&r1=1761119&r2=1761120&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/marketing/script/org/ofbiz/sfa/contact/ContactServices.xml (original)
+++ ofbiz/branches/release14.12/applications/marketing/script/org/ofbiz/sfa/contact/ContactServices.xml Sat Sep 17 05:55:12 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/branches/release14.12/applications/marketing/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/marketing/servicedef/services.xml?rev=1761120&r1=1761119&r2=1761120&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/marketing/servicedef/services.xml (original)
+++ ofbiz/branches/release14.12/applications/marketing/servicedef/services.xml Sat Sep 17 05:55:12 2016
@@ -471,6 +471,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"/>