[OFBiz] SVN: r6983 - trunk/applications/product/webapp/facility/WEB-INF/actions/facility

jacopo@svn.ofbiz.org jacopo at svn.ofbiz.org
Sat Mar 11 04:42:04 CST 2006


Author: jacopo
Date: 2006-03-11 04:41:57 -0600 (Sat, 11 Mar 2006)
New Revision: 6983

Modified:
   trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh
Log:
A small fix to always put in the context the inventory product list.

Modified: trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh
===================================================================
--- trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh	2006-03-11 10:30:21 UTC (rev 6982)
+++ trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh	2006-03-11 10:41:57 UTC (rev 6983)
@@ -43,6 +43,8 @@
 
 qty = -1;
 
+List rows = new ArrayList();
+
 if (action != null) {
 
     if (offsetQty != null && offsetQty.length() > 0) {
@@ -112,7 +114,6 @@
     }
 
     prodsIt = prods.iterator();
-    rows = new ArrayList();
 
     while (prodsIt.hasNext()) {
         oneProd = prodsIt.next();
@@ -141,5 +142,5 @@
         rows.add(oneInventory);
     }
 
-    context.put("inventoryByProduct", rows);
 }
+context.put("inventoryByProduct", rows);



More information about the Svn mailing list