Author: doogie
Date: Thu Dec 9 15:14:41 2010
New Revision: 1043998
URL:
http://svn.apache.org/viewvc?rev=1043998&view=revLog:
When thte findByAnd->findList change was done, the parameters to the new
findList method were added, but the actual method name itself was not
changed. However, since there was a vararg version of
findByAnd(Object...), this meant the code actually compiled anyways, so
the problem was not detected.
broken since: 654934
date: Fri May 9 20:57:23 2008 +0000
Modified:
ofbiz/trunk/specialpurpose/assetmaint/src/org/ofbiz/assetmaint/FixedAssetMaintServices.java
Modified: ofbiz/trunk/specialpurpose/assetmaint/src/org/ofbiz/assetmaint/FixedAssetMaintServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/src/org/ofbiz/assetmaint/FixedAssetMaintServices.java?rev=1043998&r1=1043997&r2=1043998&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/src/org/ofbiz/assetmaint/FixedAssetMaintServices.java (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/src/org/ofbiz/assetmaint/FixedAssetMaintServices.java Thu Dec 9 15:14:41 2010
@@ -84,7 +84,8 @@ public class FixedAssetMaintServices {
EntityCondition.makeCondition("facilityId", EntityOperator.EQUALS, facilityId),
EntityCondition.makeCondition("availableToPromiseTotal", EntityOperator.GREATER_THAN, "0")),
EntityOperator.AND);
- List<GenericValue> inventoryItems = delegator.findByAnd("InventoryItem", ecl, null, null, null, false); //&& inventoryItems.size() > 0
+ // FIXME: broken findByAnd
+ List<GenericValue> inventoryItems = delegator.findList("InventoryItem", ecl, null, null, null, false); //&& inventoryItems.size() > 0
Iterator<GenericValue> itr = inventoryItems.iterator();
while (requestedQty > 0 && itr.hasNext()) {
GenericValue inventoryItem = (GenericValue)itr.next();