The issue https://www.drupal.org/node/2361329 and patch attached to it solved a problem with Search_api_database, exclude option and multi-valued fields.

But now there's a new bug :

Active items of a 'is not' facet are hidden from the items list, despite the parameter "Do not display active items" isn't checked.
If all items are selected and active, the facet is following the "Empty facet behavior" parameter (ie. hiding facet or displaying a message).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

msizec’s picture

Issue summary: View changes
msizec’s picture

Status: Needs work » Active
drunken monkey’s picture

Title: Fix behavior of "is not" conditions » Fix display of active "Exclude" facets
Status: Active » Needs review
FileSize
1.11 KB

Thanks for opening this issue!
The attached patch should fix the problem. Please test!

msizec’s picture

Thanks for the patch.
Now the facet stays active, but each item of my excluding facet displays, as a counter, the number of rows returned by the view.
And if I select an item, all results are excluded.

Theres something broken ....

drunken monkey’s picture

Do you maybe have "Operator" set to "OR" for the facet? It will only work correctly with "AND", I think.

msizec’s picture

No, just checked, Im using the "AND" operator.

But I just did a complete wipe of my content and reimport everything, and it seems to be good now,

Active items are not hidden when selected, and the excluding behavior's is correct.

I'll keep doind test and I'll post another report later,

Thank you drunken monkey !

msizec’s picture

Status: Needs review » Reviewed & tested by the community

Hi there,

Just a quick message to tell you Ive done more tests and as far as I know this issue is fixed !

Thanks !

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

OK, great to hear. Thanks for testing!
Committed.

  • drunken monkey committed 03af04a on 7.x-1.x
    Issue #2371099 by drunken monkey: Fixed display of active "Exclude"...

Status: Fixed » Closed (fixed)

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