svn commit: r586914 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r586914 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.bsh

ruppert-2
Author: ruppert
Date: Sun Oct 21 09:19:45 2007
New Revision: 586914

URL: http://svn.apache.org/viewvc?rev=586914&view=rev
Log:
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) {