Skip to content

Count subselector on page reference field includes trashed pages #1146

Open
@adrianbj

Description

@adrianbj

Short description of the issue

Page A has a page reference field. If that field on page A has selected page B and you subsequently trash page B and you do a selector search like:

$pages->find('prfield.count>0')

it will include page A in the returned results.

Expected behavior

Pages that reference a trashed page should not be returned.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions