Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10845

Product Search Constraint on CountBy...methods

    XMLWordPrintableJSON

Details

    • 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:

      1. Enable LayeredNavigation function in ecommerce module.
      2. Add feature "TEXT_BLACK" to product GZ-1000 as standard feature
      3. Add "ProductSearchSession.searchAddConstraint(new ProductSearch.FeatureConstraint("TEXT_BLACK", true), session);" in LayeredNavigation.groovy before "result = ProductSearchSession.getProductSearchResult(request, delegator, prodCatalogId);"
      4. Navigate to the product via category menu.
      5. --> GZ-1000 should not be visible + no error message

      Attachments

        1. SearchCount.patch
          4 kB
          Ingo Wolfmayr

        Activity

          People

            akash.jain Akash Jain
            iwolf Ingo Wolfmayr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: