svn commit: r790857 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp

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

svn commit: r790857 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp

lektran
Author: lektran
Date: Fri Jul  3 11:05:21 2009
New Revision: 790857

URL: http://svn.apache.org/viewvc?rev=790857&view=rev
Log:
For some reason eclipse decided to report a compilation error in this jsp for the first time, fixing it because I hate those red Xs

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp?rev=790857&r1=790856&r2=790857&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/makebogodata.jsp Fri Jul  3 11:05:21 2009
@@ -27,11 +27,9 @@
 <jsp:useBean id="delegator" type="org.ofbiz.entity.GenericDelegator" scope="request" />
 
 <%
-  Iterator prods = UtilMisc.toIterator(delegator.findByAnd("Product", null, null));
-  while(prods.hasNext())
-  {
-    GenericValue prod1 = (GenericValue)prods.next();
-    KeywordIndex.indexKeywords(prod1);
+  List<GenericValue> products = delegator.findList("Product", null, null, null, null, false);
+  for (GenericValue product : products) {
+    KeywordIndex.indexKeywords(product);
   }
 
   if(request.getParameter("makeall") == null) {