Author: akashjain
Date: Sat Nov 25 09:20:21 2017
New Revision: 1816273

URL: http://svn.apache.org/viewvc?rev=1816273&view=rev
Log:
Fixed: Create Related Account from Contact Profile redirect to empty profile 
screen, applied patch from jira issue (OFBIZ-9697)

Thanks, Ankit Joshi for your contribution.

Modified:
    
ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
    
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyMenus.xml
    
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyScreens.xml

Modified: 
ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=1816273&r1=1816272&r2=1816273&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 (original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 Sat Nov 25 09:20:21 2017
@@ -57,6 +57,7 @@ under the License.
     <request-map uri="editPartyInvitation"><security https="true" 
auth="true"/><response name="success" type="view" 
value="editPartyInvitation"/></request-map>
     <request-map uri="PartyInvitationGroupAssocs"><security https="true" 
auth="true"/><response name="success" type="view" 
value="PartyInvitationGroupAssocs"/></request-map>
     <request-map uri="PartyInvitationRoleAssocs"><security https="true" 
auth="true"/><response name="success" type="view" 
value="PartyInvitationRoleAssocs"/></request-map>
+    <request-map uri="AddPartyRelatedAccount"><security https="true" 
auth="true"/><response name="success" type="view" 
value="AddPartyRelatedAccount"/></request-map>
  <!--Party Invitation Services-->
     <request-map uri="createPartyInvitation">
         <security https="true" auth="true"/>
@@ -419,7 +420,7 @@ under the License.
     <request-map uri="createPartyAttribute">
         <security https="true" auth="true"/>
         <event type="service" path="" invoke="createPartyAttribute"/>
-        <response name="success" type="view" value="viewprofile"/>
+        <response name="success" type="request" value="backHome"/>
         <response name="error" type="view" value="EditPartyAttribute"/>
     </request-map>
     <request-map uri="updatePartyAttribute">
@@ -1427,6 +1428,7 @@ under the License.
     <view-map name="Preferences" type="screen" 
page="component://party/widget/partymgr/PartyScreens.xml#Preferences"/>
     <view-map name="PartyGeoLocation" type="screen" 
page="component://party/widget/partymgr/PartyScreens.xml#PartyGeoLocation"/>
     <view-map name="GetPartyGeoLocation" type="screen" 
page="component://party/widget/partymgr/PartyScreens.xml#GetPartyGeoLocation"/>
+    <view-map name="AddPartyRelatedAccount" type="screen" 
page="component://party/widget/partymgr/PartyScreens.xml#CreatePartyRelatedAccount"/>
 
     <view-map name="UpdateCommOrders" type="screen" 
page="component://party/widget/partymgr/CommunicationEventScreens.xml#UpdateCommOrders"/>
     <view-map name="UpdateCommProducts" type="screen" 
page="component://party/widget/partymgr/CommunicationEventScreens.xml#UpdateCommProducts"/>

Modified: 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyMenus.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyMenus.xml?rev=1816273&r1=1816272&r2=1816273&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyMenus.xml 
(original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyMenus.xml 
Sat Nov 25 09:20:21 2017
@@ -723,7 +723,7 @@
 
     <menu name="AddRelContactAccounts">
         <menu-item name="add" title="${uiLabelMap.CommonCreateNew}">
-            <link target="${parameters._LAST_VIEW_NAME_}">
+            <link target="AddPartyRelatedAccount">
                 <parameter param-name="partyId"/>
                 <parameter param-name="portalPageId"/>
                 <parameter param-name="editPartyRel" value="Y"/>

Modified: 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyScreens.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=1816273&r1=1816272&r2=1816273&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyScreens.xml 
(original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyScreens.xml 
Sat Nov 25 09:20:21 2017
@@ -575,6 +575,27 @@ under the License.
             </widgets>
         </section>
     </screen>
+    
+    <screen name="CreatePartyRelatedAccount">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PartyAddRelatedAccount"/>
+                <set field="tabButtonItem" value="viewprofile"/>
+                <set field="labelTitleProperty" 
value="PartyAddRelatedAccount"/>
+                <set field="partyId" from-field="parameters.partyId"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonPartyDecorator" 
location="${parameters.mainDecoratorLocation}">
+                    <decorator-section name="body">
+                        <screenlet 
title="${uiLabelMap.PartyAddRelatedAccount}">
+                            <include-form name="AddAccount" 
location="component://party/widget/partymgr/PartyForms.xml"/>
+                        </screenlet>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    
     <screen name="EditUserLoginSecurityGroups">
         <section>
             <actions>


Reply via email to