svn commit: r611372 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java

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

svn commit: r611372 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java

jleroux@apache.org
Author: jleroux
Date: Fri Jan 11 22:25:19 2008
New Revision: 611372

URL: http://svn.apache.org/viewvc?rev=611372&view=rev
Log:
A patch from Jeremy Wickersheimer "Product keyword search doesn't search in all child categories" (https://issues.apache.org/jira/browse/OFBIZ-1572) - OFBIZ-1572

Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java?rev=611372&r1=611371&r2=611372&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java Fri Jan 11 22:25:19 2008
@@ -192,9 +192,11 @@
                         if (!isCategoryEmpty(cv)) {
                             //Debug.log("Child : " + cv.getString("productCategoryId") + " is not empty.", module);
                             categories.add(cv);
+                            categories.addAll(getRelatedCategoriesRet(request, attributeName, cv.getString("productCategoryId"), limitView, excludeEmpty));
                         }
                     } else {
                         categories.add(cv);
+                        categories.addAll(getRelatedCategoriesRet(request, attributeName, cv.getString("productCategoryId"), limitView, excludeEmpty));
                     }
                 }
             }