Author: jleroux
Date: Tue Jul 29 14:38:43 2014
New Revision: 1614367
URL:
http://svn.apache.org/r1614367Log:
"Applied fix from trunk for revision: 1614366"
------------------------------------------------------------------------
r1614366 | jleroux | 2014-07-29 16:37:48 +0200 (mar. 29 juil. 2014) | 4 lignes
A patch from Pierre Smits for "AddOtherPartyRelationship allows user to select roles the selected party doesn't have"
https://issues.apache.org/jira/browse/OFBIZ-5694When a relationship must be set for a party to another party, the role selector for the party shows all roles available in the data set.
This, however, must be limitied to the roles the party has.
------------------------------------------------------------------------
Modified:
ofbiz/branches/release13.07/ (props changed)
ofbiz/branches/release13.07/applications/party/widget/partymgr/PartyForms.xml
Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1614366
Modified: ofbiz/branches/release13.07/applications/party/widget/partymgr/PartyForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/widget/partymgr/PartyForms.xml?rev=1614367&r1=1614366&r2=1614367&view=diff==============================================================================
--- ofbiz/branches/release13.07/applications/party/widget/partymgr/PartyForms.xml (original)
+++ ofbiz/branches/release13.07/applications/party/widget/partymgr/PartyForms.xml Tue Jul 29 14:38:43 2014
@@ -840,8 +840,10 @@ under the License.
<field name="partyIdTo" entry-name="parameters.partyId"><display/></field>
<field name="roleTypeIdTo" title="${uiLabelMap.PartyPartyInTheRoleOf}">
<drop-down allow-empty="false" no-current-selected-key="_NA_">
- <entity-options entity-name="RoleType" key-field-name="roleTypeId" description="${description}">
+ <entity-options entity-name="RoleTypeAndParty" key-field-name="roleTypeId" description="${description}">
+ <entity-constraint name="partyId" value="${partyId}"/>
<entity-order-by field-name="description"/>
+ <entity-order-by field-name="roleTypeId"/>
</entity-options>
</drop-down>
</field>