Author: arunpatidar
Date: Sat Jul 2 08:02:07 2016
New Revision: 1751030
URL:
http://svn.apache.org/viewvc?rev=1751030&view=revLog:
Applied patch from jira issue - OFBIZ-7212 - Error on product detail page. Thanks Anurag Chandak for your contribution.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=1751030&r1=1751029&r2=1751030&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java Sat Jul 2 08:02:07 2016
@@ -163,7 +163,7 @@ public class ProductServices {
Set<String> featureSet = new LinkedHashSet<String>();
try {
- List<GenericValue> features = EntityQuery.use(delegator).from("ProductFeatureAndAppl").where("productId", productId, "productFeatureApplTypeId", productFeatureApplTypeId).orderBy("sequenceNum", "productFeatureTypeId").cache(true).queryList();
+ List<GenericValue> features = EntityQuery.use(delegator).from("ProductFeatureAndAppl").where("productId", productId, "productFeatureApplTypeId", productFeatureApplTypeId).orderBy("sequenceNum", "productFeatureTypeId").cache(true).filterByDate().queryList();
for (GenericValue v: features) {
featureSet.add(v.getString("productFeatureTypeId"));
}