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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user