Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#3 | 2371099-3--display_active_exclude_facets.patch | 1.11 KB | drunken monkey |
Comments
Comment #1
msizec CreditAttribution: msizec commentedComment #2
msizec CreditAttribution: msizec commentedComment #3
drunken monkeyThanks for opening this issue!
The attached patch should fix the problem. Please test!
Comment #4
msizec CreditAttribution: msizec commentedThanks 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 ....
Comment #5
drunken monkeyDo you maybe have "Operator" set to "OR" for the facet? It will only work correctly with "AND", I think.
Comment #6
msizec CreditAttribution: msizec commentedNo, 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 !
Comment #7
msizec CreditAttribution: msizec commentedHi there,
Just a quick message to tell you Ive done more tests and as far as I know this issue is fixed !
Thanks !
Comment #8
drunken monkeyOK, great to hear. Thanks for testing!
Committed.