-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF17, 11.1, 2021.0
-
Component/s: Web UI
- setup a pageprovider with an aggregate on the document type
- make the search form and results appear in a tab
- create a document of the same type
- unfold the filter
- observe the params are empty (see notyetclicked.png)
- in the filter click the aggregate once
- observe the JSON on the right contains 1 result (see clicked.png)
- fold the filter
- observe the count is 1 (see clicked2.png)
- unfold the filter
- uncheck the aggregate (see unclicked.png)
- fold the filter
- observe the count is 1 (see unclicked2.png)
Expected behavior: the count should be 0 and not visible
Pre-analysis: this seems to be due to the following line
https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/search/nuxeo-results-view.html#L302
When it has never been clicked then it works but once one or more aggregates have been clicked, the params are set with a length of 0.
Suggestion: on top of checking if the params are empty, it should check the length of each aggregates. If they are all equal to 0 then the count should be 0 and not be displayed.
- causes
-
NXP-28268 Fix javascript error with custom tabs and page providers
- Resolved
- Is referenced in