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.
See the screenshot for what I mean.
If I choose "only nodes of type blog" I should not be allowed to select "And of type book". No node is an image AND a book page.
Comment | File | Size | Author |
---|---|---|---|
#2 | node_filter_by_type_once_0.patch | 653 bytes | Kjartan |
#1 | node_filter_by_type_once.patch | 587 bytes | edmund.kwok |
node_filter_oddity.png | 31.95 KB | Bèr Kessels |
Comments
Comment #1
edmund.kwok CreditAttribution: edmund.kwok commentedIn that sense, any node can't be any two types at the same time yeah? This patch checks to see if nodes are already filtered by type, if so, the type filter is unset.
Comment #2
Kjartan CreditAttribution: Kjartan commentedTested the patch and confirmed that it doesn't let you select multiple node types for filtering.
Attached is a clean diff against current HEAD.
Comment #3
Dries CreditAttribution: Dries commentedLooks good. I'd add a code comment though. Not necessary but recommended.
Comment #4
drummCommitted to HEAD with a comment.
Comment #5
(not verified) CreditAttribution: commented