You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Michael Brohl (Jira)" <ji...@apache.org> on 2021/02/11 17:25:00 UTC

[jira] [Commented] (OFBIZ-10845) Product Search Constraint on CountBy...methods

    [ https://issues.apache.org/jira/browse/OFBIZ-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17283215#comment-17283215 ] 

Michael Brohl commented on OFBIZ-10845:
---------------------------------------

[~akash.jain] Are you working on this? Can you provide a patch?
We are currently squashing bugs for the upcoming 18.12 release and it would help us getting this done.

> Product Search Constraint on CountBy...methods
> ----------------------------------------------
>
>                 Key: OFBIZ-10845
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10845
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce, product
>    Affects Versions: 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
>            Reporter: Ingo Wolfmayr
>            Assignee: Akash Jain
>            Priority: Minor
>              Labels: search
>             Fix For: Release Branch 13.07, Release Branch 14.12, Release Branch 15.12
>
>         Attachments: SearchCount.patch
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)