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.
It would be nice if contextual filters could validate the display equivalents for on/off in URLs for Boolean fields.
I.e., a url of /view-path/on-value
= /view-path/1
, and /view-path/off-value
= /view-path/0
Currently, putting any sort of string in the URL where the argument is expected is treated as /view-path/0
, since, apparently (at least in MySQL), a non-numeric string evaluates to zero in comparisons with numbers.
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated, feel free to re-open with updated details if it's still a problem in the latest release.