svn commit: r1761257 - /ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1761257 - /ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml

nmalin
Author: nmalin
Date: Sat Sep 17 16:55:59 2016
New Revision: 1761257

URL: http://svn.apache.org/viewvc?rev=1761257&view=rev
Log:
Fix for : LookupAccount search screen 'Find' button redirect to Lookup Group
(OFBIZ-7117)

Use a dynamic target resolution on form LookupPerson and LookupPartyGroup that call by different LookupScreen so different URI.
With a static target, we loosed the preparation on dedicate parameter search realize by the dedicate LookupScreen like LookupAccount or LookupLead

Thanks : Florian Montalbano to spot and explain on detail the problem.

Modified:
    ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml

Modified: ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml?rev=1761257&r1=1761256&r2=1761257&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/LookupForms.xml Sat Sep 17 16:55:59 2016
@@ -169,7 +169,7 @@ under the License.
     </form>
 
     <!-- Person Lookup forms -->
-    <form name="LookupPerson" type="single" target="LookupPerson"
+    <form name="LookupPerson" type="single" target="${parameters.thisRequestUri}"
         header-row-style="header-row" default-table-style="basic-table">
         <!--<auto-fields-entity entity-name="Person" default-field-type="find"/>-->
         <field name="partyId" title="${uiLabelMap.PartyPartyId}"><text-find/></field>
@@ -179,7 +179,7 @@ under the License.
         <field name="submitButton" title="${uiLabelMap.CommonFind}"><submit button-type="button"/></field>
     </form>
 
-    <form name="ListLookupPerson" type="list" list-name="listIt" paginate-target="LookupPerson"
+    <form name="ListLookupPerson" type="list" list-name="listIt" paginate-target="${parameters.thisRequestUri}"
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
         <actions>
             <script location="component://party/groovyScripts/party/FindLookUp.groovy"/>
@@ -257,7 +257,7 @@ under the License.
         <field name="groupName" title="${uiLabelMap.PartyGroupName}"><display description="${groupName}"/></field>
     </form>
 
-    <form name="LookupPartyGroup" type="single" target="LookupPartyGroup"
+    <form name="LookupPartyGroup" type="single" target="${parameters.thisRequestUri}"
         header-row-style="header-row" default-table-style="basic-table">
         <!--<auto-fields-entity entity-name="PartyGroup" default-field-type="find"/>-->
         <field name="partyId" title="${uiLabelMap.PartyPartyId}"><text-find/></field>
@@ -266,7 +266,7 @@ under the License.
         <field name="submitButton" title="${uiLabelMap.CommonFind}"><submit button-type="button"/></field>
     </form>
 
-    <form name="ListLookupPartyGroup" type="list" list-name="listIt" paginate-target="LookupPartyGroup"
+    <form name="ListLookupPartyGroup" type="list" list-name="listIt" paginate-target="${parameters.thisRequestUri}"
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
         <actions>
             <script location="component://party/groovyScripts/party/FindLookUp.groovy"/>