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.
See #2188165: [Regression] View term filter 'is/not empty' and 'not one of' operators do not work for more. Since the core views taxonomy term filter handler had this bug, when it was forked into a SearchAPI views handler, the same bug remains. Although we need to fix this "upstream" in various places, we actually need to fix the copy in SearchAPI to fix the behavior on d.o itself. I'm working on a patch now, stay tuned.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2489882-1.search-api-taxonomy-handle-empty.patch | 1.66 KB | dww |
Comments
Comment #1
dwwSee #2188165-9: [Regression] View term filter 'is/not empty' and 'not one of' operators do not work for the specifics of why this patch is both ugly and correct. ;)
Comment #2
dwwI deployed this on https://lax1-drupal.redesign.devdrupal.org and confirmed that it fixes the problems. I haven't done an exhaustive test of everything SearchAPI-related, but quick poking around looks reasonable.
Comment #3
tim.plunkettThis is really not ideal, but without refactoring how $this->operator is populated all across views, we're stuck with this in D7.
I committed the Views equivalent of this.
Comment #4
drunken monkeyThanks a lot for the report, the patch and the review!
I haven't reviewed or tested it exhaustively, but it looks reasonable enough, and if you two say it works, then I'll take your word.
So, committed. Thanks again!
Oh, and for the future: for issues affecting d.o you are welcome to ping me via mail/contact form!
Comment #7
drummFinally deployed to Drupal.org.