Author: ruppert
Date: Sun Oct 21 09:19:45 2007
New Revision: 586914
URL:
http://svn.apache.org/viewvc?rev=586914&view=revLog:
Fixed put to HashMap issue
Modified:
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh?rev=586914&r1=586913&r2=586914&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh Sun Oct 21 09:19:45 2007
@@ -42,6 +42,8 @@
conditions.add(new EntityExpr("statusId", EntityOperator.EQUALS, null));
conditionList = new EntityConditionList(conditions, EntityOperator.OR);
try {
+ // create resultMap to stop issue with the first puts in the while loop
+ resultMap = new HashMap();
beganTransaction = TransactionUtil.begin();
invItemListItr = delegator.findListIteratorByCondition("InventoryItem", conditionList, null, UtilMisc.toList("productId"));
while ((inventoryItem = invItemListItr.next()) != null) {