Author: pranayp
Date: Sat Sep 17 05:53:22 2016
New Revision: 1761119

URL: http://svn.apache.org/viewvc?rev=1761119&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/release15.12/applications/marketing/script/org/ofbiz/sfa/contact/ContactServices.xml
    ofbiz/branches/release15.12/applications/marketing/servicedef/services.xml

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


Reply via email to