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.
I created a filter for Node ID with operator 'Is not between', exposed, optional.
Entering min/max values (10 and 20) in the widget I get an empty result, and the query shows me why: (node.nid >= 20) AND (node.nid <= 10)
There are two op_between() functions in "views/handlers/views_handler_filter_numeric.inc" where the OR shall be used for 'Is not between'.
Comment | File | Size | Author |
---|---|---|---|
#1 | filter_numeric_op_not_between.patch | 1.82 KB | mindgame |
Comments
Comment #1
mindgame CreditAttribution: mindgame commentedHow I fixed it on my installation.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedAh, good catch. Though adding a NOT ( ) around it would have worked just as well I think, this is fine.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.