Author: lektran
Date: Sun Nov 8 21:41:19 2009
New Revision: 833933
URL:
http://svn.apache.org/viewvc?rev=833933&view=revLog:
Removed use of a deprecated Delegator method, patch provided by Sumit Pandit
Modified:
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryAverageCosts.groovy
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryAverageCosts.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryAverageCosts.groovy?rev=833933&r1=833932&r2=833933&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryAverageCosts.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryAverageCosts.groovy Sun Nov 8 21:41:19 2009
@@ -28,7 +28,7 @@
facilityId = context.get("facilityId");
EntityCondition whereConditions = EntityCondition.makeCondition("facilityId", EntityOperator.EQUALS, facilityId);
-inventoryItems = delegator.findByCondition("InventoryItem", whereConditions, null, UtilMisc.toList("productId"), null, null);
+inventoryItems = delegator.findList("InventoryItem", whereConditions, UtilMisc.toSet("productId"), UtilMisc.toList("productId"), null, false);
inventoryItemProducts = EntityUtil.getFieldListFromEntityList(inventoryItems, "productId", true);
inventoryAverageCosts = FastList.newInstance();