You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/09/29 01:49:56 UTC
svn commit: r819770 -
/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java
Author: lektran
Date: Mon Sep 28 23:49:56 2009
New Revision: 819770
URL: http://svn.apache.org/viewvc?rev=819770&view=rev
Log:
Bug fix: ProductFeatureAppl doesn't have a description field to sort by
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java?rev=819770&r1=819769&r2=819770&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java Mon Sep 28 23:49:56 2009
@@ -462,8 +462,9 @@
condList.add(EntityCondition.makeCondition("productFeatureApplTypeId", productFeatureApplTypeId));
}
EntityCondition cond = EntityCondition.makeCondition(condList);
- productAppls = product.getDelegator().findList("ProductFeatureAppl", cond, null, UtilMisc.toList("description"), null, false);
+ productAppls = product.getDelegator().findList("ProductFeatureAppl", cond, null, null, null, false);
features = EntityUtil.getRelated("ProductFeature", productAppls);
+ features = EntityUtil.orderBy(features, UtilMisc.toList("description"));
}
} catch (GenericEntityException e) {
Debug.logError(e, module);