Author: akashjain
Date: Thu Sep  7 12:23:14 2017
New Revision: 1807597

URL: http://svn.apache.org/viewvc?rev=1807597&view=rev
Log:
 Fixed: Creating Lead Source from profile page it redirects to empty profile 
page, applied patch from jira issue (OFBIZ-9553)
Additional change: dataSourceId made a required field.
Thanks  Aditya Sharma for your contribution

Modified:
    
ofbiz/ofbiz-framework/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
    
ofbiz/ofbiz-framework/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml

Modified: 
ofbiz/ofbiz-framework/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml?rev=1807597&r1=1807596&r2=1807597&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
 (original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
 Thu Sep  7 12:23:14 2017
@@ -145,7 +145,14 @@ under the License.
     <request-map uri="createLeadPartyDataSource">
         <security https="true" auth="true"/>
         <event type="service" invoke="createPartyDataSource"/>
-        <response name="success" type="request" value="viewprofile"/>
+        <response name="success" type="request-redirect" value="viewprofile">
+            <redirect-parameter name="partyId"/>
+            <redirect-parameter name="roleTypeId"/>
+        </response>
+        <response name="error" type="request-redirect" value="viewprofile">
+            <redirect-parameter name="partyId"/>
+            <redirect-parameter name="roleTypeId"/>
+        </response>
     </request-map>
     <request-map uri="AddRelatedCompany">
         <security https="true" auth="true"/>

Modified: 
ofbiz/ofbiz-framework/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml?rev=1807597&r1=1807596&r2=1807597&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml
 (original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml
 Thu Sep  7 12:23:14 2017
@@ -135,7 +135,8 @@ under the License.
     <form name="AddLeadPartyDataSource" type="single" 
target="createLeadPartyDataSource">
         <auto-fields-service service-name="createPartyDataSource"/>
         <field name="partyId"><hidden/></field>
-        <field name="dataSourceId" title="${uiLabelMap.SfaLeadSource}">
+        <field name="roleTypeId"><hidden/></field>
+        <field name="dataSourceId" title="${uiLabelMap.SfaLeadSource}" 
required-field="true">
             <drop-down allow-empty="true">
                 <entity-options entity-name="DataSource" 
key-field-name="dataSourceId" description="${dataSourceId} - ${description}">
                     <entity-constraint name="dataSourceTypeId" 
operator="equals" value="LEAD_SOURCE"/>


Reply via email to