From 9a637fcd024a3199d72341b32bbfd3bca5bf4284 Mon Sep 17 00:00:00 2001 From: Ashish Vijaywargiya Date: Wed, 30 Sep 2009 11:18:03 +0000 Subject: [PATCH] Reverted changes of previous commit. This can create problem for the projects in which "prodSearchExcludeVariants" field is not been set in past so the not-empty check will allow variant product to be included on the search. Thanks Scott for your comment. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820249 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/product/product/ProductSearchSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java b/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java index 58ca20e511..5f15d21ba3 100644 --- a/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java +++ b/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java @@ -767,7 +767,7 @@ public class ProductSearchSession { } // check the ProductStore to see if we should add the ExcludeVariantsConstraint - if (productStore != null && UtilValidate.isNotEmpty(productStore.getString("prodSearchExcludeVariants")) && !"N".equals(productStore.getString("prodSearchExcludeVariants"))) { + if (productStore != null && !"N".equals(productStore.getString("prodSearchExcludeVariants"))) { searchAddConstraint(new ProductSearch.ExcludeVariantsConstraint(), session); // not consider this a change for now, shouldn't change often: constraintsChanged = true; }