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.
When I use a 'Does not contain' option in a grouped filter, fields where the value is NULL do not match the filter. This is because in mySQL, "NOT LIKE" on a NULL value returns NULL, not TRUE.
I've patched the views string handler to accommodate for this by including an "OR IS NULL" on the op_not operator function.
This may have been handled elsewhere - it seems obvious - and there may be a better way of handling it, but my search found nothing. My apologies if I've duplicated an issue.
Comment | File | Size | Author |
---|---|---|---|
#4 | op_not-2867891-4.patch | 707 bytes | joseph.olstad |
Comments
Comment #2
DamienMcKennaOh, that's an interesting bug. Good catch. Lets see what the testbot says.
Comment #4
joseph.olstadrerolled the original patch, same code except rerolled for head.