As discussed in CCK's #311912: Many_to_one filters/args handlers, attached patch adds optional 'is empty / is not empty' operators to views_handler_filter_in_operator handler.
We originally considered adding this to views_handler_filter_many_to_one (I have working code for this as well), but adding it to the parent class is actually more straightforward.

The code is largely inspired by views_handler_filter_string / views_handler_filter_numeric.

CommentFileSizeAuthor
views_filter_in_allow_empty.patch11.15 KByched

Comments

moshe weitzman’s picture

Subscribe. I have had requests for this in OG (posts that are not in any group).

merlinofchaos’s picture

Status: Needs review » Fixed

I'm sorry I let this slip through the cracks. Committed to both 2.x and 3.x, and enabled for taxonomy: tid.

kenorb’s picture

Thank you.

gpk’s picture

Thanks also, I was looking for the "posts that are not in any group" behavior.

Status: Fixed » Closed (fixed)

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