Author: apatel
Date: Mon Mar 17 17:02:02 2008
New Revision: 638147
URL:
http://svn.apache.org/viewvc?rev=638147&view=revLog:
Adding PartyRelationship entity to match partyIdFrom field with userlogin.partyId. This will help SFA webapps find screens to show only the parties that have relationship with logged in user.
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java?rev=638147&r1=638146&r2=638147&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon Mar 17 17:02:02 2008
@@ -1032,7 +1032,7 @@
fieldsToSelect.add("statusId");
fieldsToSelect.add("partyTypeId");
- // filter on inventory item's fields
+ // filter on parties that have relationship with logged in user
String roleTypeIdTo = (String) context.get("roleTypeIdTo");
if (UtilValidate.isNotEmpty(roleTypeIdTo)) {
// add role to view