You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jo...@apache.org on 2007/01/22 02:40:27 UTC

svn commit: r498504 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryServices.java

Author: jonesde
Date: Sun Jan 21 17:40:26 2007
New Revision: 498504

URL: http://svn.apache.org/viewvc?view=rev&rev=498504
Log:
Fixed problem when searching by ProductCategoryAndMember to use findByAndCache instead of getRelatedCache

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

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryServices.java?view=diff&rev=498504&r1=498503&r2=498504
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryServices.java Sun Jan 21 17:40:26 2007
@@ -219,7 +219,7 @@
         if (productCategory != null) {
             try {
                 if (useCacheForMembers) {
-                    productCategoryMembers = productCategory.getRelatedCache(entityName, null, orderByFields);
+                    productCategoryMembers = delegator.findByAndCache(entityName, UtilMisc.toMap("productCategoryId", productCategoryId), orderByFields);
                     if (activeOnly) {
                         productCategoryMembers = EntityUtil.filterByDate(productCategoryMembers, true);
                     }