Problem/Motivation

There's no way that I can see to filter a view of menu link content items by ones that have no parents, or only ones that have parents.

Steps to reproduce

Create a view, add the 'parent plugin id' filter, use any of the operators provided.

Proposed resolution

Tweak the views definition so that views knows that the field can be empty, and thus will provide a filter for NULL/NOT NULL.

Remaining tasks

Write and review the code.

User interface changes

Adds a couple of additional operators to the views filter interface for the field.

API changes

None.

Data model changes

None.

Comments

Steven Jones created an issue. See original summary.

steven jones’s picture

Status: Active » Needs review
StatusFileSize
new623 bytes

I can't seem to get an issue fork at the moment, so here's a patch.

  • podarok committed f0f078a0 on 3.0.x authored by Steven Jones
    Issue #3320409 by Steven Jones: Allow views to filter by no parent menu...
podarok’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Status: Needs review » Fixed

tnx

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.