Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Oct 2011 at 15:28 UTC
Updated:
19 Dec 2012 at 13:23 UTC
When implementing the negative facet pattern such as this screenshot, the count is not displayed for facets with zero results. This is due to logic in the theme_facetapi_link_inactive() function that assumes a count is required to be positive. Changing the empty() to an isset() might work.
Comments
Comment #1
cpliakas commentedResolved in commit 515dbc3.
Comment #2
foopang commentedHi, I want this feature with Search API. How does it work?
Comment #3
cpliakas commentedHi beansboxchrispang.
I would post an issue in the Search API queue. If applicable, it can be bumped back to this module. Also, it is always better to post a new issue with the category "support request", because a fixed bug report won't get any attention since the issue is effectively closed.
Thanks,
Chris
Comment #4
foopang commentedThanks a lot, Chris;)
Comment #6
cpliakas commentedLooks like Search API already has an issue posted at #1306008: Negative facets not displayed when the mincount is 0.
Comment #7
henrijs.seso commentedThis issue mentioned in #6 is closed, see #1232632: Show all terms as facets, even when there are no results..