Author: jleroux
Date: Tue Jul 29 14:37:48 2014
New Revision: 1614366
URL:
http://svn.apache.org/r1614366Log:
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/trunk/applications/party/widget/partymgr/PartyForms.xml
Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml?rev=1614366&r1=1614365&r2=1614366&view=diff==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml Tue Jul 29 14:37:48 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>