Open
Description
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.