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

cpliakas’s picture

Status: Active » Fixed

Resolved in commit 515dbc3.

foopang’s picture

Component: Code » Code (functionality)

Hi, I want this feature with Search API. How does it work?

cpliakas’s picture

Hi 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

foopang’s picture

Thanks a lot, Chris;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

cpliakas’s picture

Component: Code (functionality) » Code

Looks like Search API already has an issue posted at #1306008: Negative facets not displayed when the mincount is 0.

henrijs.seso’s picture