Add new filter operator "Is not equal to OR is empty"

Created on 21 October 2013, over 11 years ago
Updated 31 July 2023, over 1 year ago

I think a useful filter operator would be "Is not equal to OR is empty", because it is quite hard to achieve that currently.

Because:

field != 'value' doesn't get results that match field IS NULL you can get unexpected results when using the "Is not equal" operators with data that is not required.

For example if I said I wanted nodes where the "name" field is not equal to "Reuben" I would likely expect a node with no "name" at all to be included because no name is not the same as "Reuben".

You could use views OR functionality to make it happen, however that won't work out very well for exposed filters.

So if we have an option to say (field != 'value' OR field IS NULL) I think that would be a useful addition.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡¦πŸ‡ΊAustralia rooby

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024