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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

edmund.kwok’s picture

Status: Active » Needs review
FileSize
587 bytes

In 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.

Kjartan’s picture

Version: x.y.z » 5.0-beta1
Status: Needs review » Reviewed & tested by the community
FileSize
653 bytes

Tested the patch and confirmed that it doesn't let you select multiple node types for filtering.

Attached is a clean diff against current HEAD.

Dries’s picture

Looks good. I'd add a code comment though. Not necessary but recommended.

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD with a comment.

Anonymous’s picture

Status: Fixed » Closed (fixed)