Author: lektran
Date: Mon Sep 28 23:49:56 2009
New Revision: 819770
URL:
http://svn.apache.org/viewvc?rev=819770&view=revLog:
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);