Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Release Branch 13.07, Release Branch 14.12, Release Branch 15.12, Release Branch 16.11, Release Branch 18.12, Release Branch 17.12, Trunk, Upcoming Branch
-
Patch
Description
If a search constraint like featuresId or categorieId is applied, the CountBy...methods in the ProductSearchSession fail.
Error: mainProductId field is missing.
Attached is a patch that fixes the problem.
Test:
- Enable LayeredNavigation function in ecommerce module.
- Add feature "TEXT_BLACK" to product GZ-1000 as standard feature
- Add "ProductSearchSession.searchAddConstraint(new ProductSearch.FeatureConstraint("TEXT_BLACK", true), session);" in LayeredNavigation.groovy before "result = ProductSearchSession.getProductSearchResult(request, delegator, prodCatalogId);"
- Navigate to the product via category menu.
- --> GZ-1000 should not be visible + no error message