Author: pranayp
Date: Sat Aug 26 06:32:01 2017
New Revision: 1806262

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

===========================================
Fixed: Lead Profile URL not working properly in SFA.
(OFBIZ-9512)

Fixed it at all the places found in SFA where roleTypeId wasn't being passed 
and creating the issue.

Thanks Jagpreet Kaur for reporting and verifying the issue, thanks Parakh 
Maheshwari and Devanshu Vyas for reviewing and providing details on their 
finding and thanks Aditya Sharma for providing the patch.

===========================================

Modified:
    
ofbiz/branches/release16.11/applications/marketing/widget/sfa/CommonScreens.xml
    ofbiz/branches/release16.11/applications/marketing/widget/sfa/SfaMenus.xml
    
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/ContactForms.xml
    
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/LeadForms.xml
    
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/OpportunityForms.xml

Modified: 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/CommonScreens.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/marketing/widget/sfa/CommonScreens.xml?rev=1806262&r1=1806261&r2=1806262&view=diff
==============================================================================
--- 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/CommonScreens.xml 
(original)
+++ 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/CommonScreens.xml 
Sat Aug 26 06:32:01 2017
@@ -222,6 +222,7 @@ under the License.
                                         <container style="button-bar 
button-style-2">
                                             <link target="viewprofile" 
text="${uiLabelMap.PartyHideOld}">
                                                 <parameter 
param-name="partyId" from-field="party.partyId"/>
+                                                <parameter 
param-name="roleTypeId" from-field="parameters.roleTypeId"/>
                                             </link>
                                         </container>
                                     </widgets>
@@ -229,6 +230,7 @@ under the License.
                                         <container style="button-bar 
button-style-2">
                                             <link target="viewprofile" 
text="${uiLabelMap.PartyShowOld}">
                                                 <parameter 
param-name="partyId" from-field="party.partyId"/>
+                                                <parameter 
param-name="roleTypeId" from-field="parameters.roleTypeId"/>
                                                 <parameter 
param-name="SHOW_OLD" value="true"/>
                                             </link>
                                         </container>

Modified: 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/SfaMenus.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/marketing/widget/sfa/SfaMenus.xml?rev=1806262&r1=1806261&r2=1806262&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/marketing/widget/sfa/SfaMenus.xml 
(original)
+++ ofbiz/branches/release16.11/applications/marketing/widget/sfa/SfaMenus.xml 
Sat Aug 26 06:32:01 2017
@@ -139,6 +139,7 @@ under the License.
             </condition>
             <link target="viewprofile">
                 <parameter param-name="partyId" 
from-field="parameters.partyId"/>
+                <parameter param-name="roleTypeId" 
from-field="parameters.roleTypeId"/>
             </link>
         </menu-item>
     </menu>

Modified: 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/ContactForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/ContactForms.xml?rev=1806262&r1=1806261&r2=1806262&view=diff
==============================================================================
--- 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/ContactForms.xml
 (original)
+++ 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/ContactForms.xml
 Sat Aug 26 06:32:01 2017
@@ -101,6 +101,12 @@ under the License.
                 <field-map field-name="distinct" value="Y"/>
             </service>
         </actions>
+        <field name="partyId" title="${uiLabelMap.PartyPartyId}">
+            <hyperlink description="${partyName} [${partyId}]" 
target="viewprofile" >
+                <parameter param-name="partyId"/>
+                <parameter param-name="roleTypeId" from-field="roleTypeIdTo"/>
+            </hyperlink>
+        </field>
         <field name="assignToMe"><hidden/></field>
     </form>
     <form name="NewContact" type="single" target="createContact" 
header-row-style="header-row" default-table-style="basic-table">

Modified: 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/LeadForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/LeadForms.xml?rev=1806262&r1=1806261&r2=1806262&view=diff
==============================================================================
--- 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/LeadForms.xml
 (original)
+++ 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/LeadForms.xml
 Sat Aug 26 06:32:01 2017
@@ -232,6 +232,12 @@ under the License.
                 <field-map field-name="distinct" value="Y"/>
             </service>
         </actions>
+        <field name="partyId" title="${uiLabelMap.PartyPartyId}">
+            <hyperlink description="${partyName} [${partyId}]" 
target="viewprofile" >
+                <parameter param-name="partyId"/>
+                <parameter param-name="roleTypeId" from-field="roleTypeIdTo"/>
+            </hyperlink>
+        </field>
         <field name="assignToMe"><hidden/></field>
     </form>
     <form name="AddRelatedCompany" type="single" 
target="createPartyRelationship">

Modified: 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/OpportunityForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/OpportunityForms.xml?rev=1806262&r1=1806261&r2=1806262&view=diff
==============================================================================
--- 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/OpportunityForms.xml
 (original)
+++ 
ofbiz/branches/release16.11/applications/marketing/widget/sfa/forms/OpportunityForms.xml
 Sat Aug 26 06:32:01 2017
@@ -77,6 +77,7 @@ under the License.
             <display-entity entity-name="PartyNameView" 
description="${firstName} ${lastName} ${middleName} ${groupName}" 
key-field-name="partyId">
                 <sub-hyperlink target="viewprofile" description=" 
[${partyId}]">
                     <parameter param-name="partyId" from-field="partyId"/>
+                    <parameter param-name="roleTypeId" 
from-field="roleTypeId"/>
                 </sub-hyperlink>
             </display-entity> 
         </field>


Reply via email to