Skip to content

Commit

Permalink
Fix for : LookupAccount search screen 'Find' button redirect to Looku…
Browse files Browse the repository at this point in the history
…p 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.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761257 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
nmalin committed Sep 17, 2016
1 parent 6a7f2b2 commit e65594f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions applications/party/widget/partymgr/LookupForms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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"/>
Expand Down Expand Up @@ -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>
Expand All @@ -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"/>
Expand Down

0 comments on commit e65594f

Please sign in to comment.