processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

`findRaw()` returns unpublished page reference fields

Open adrianbj opened this issue 1 year ago • 0 comments

Short description of the issue

findRaw() and getRaw() return unpublished page reference fields.

Expected behavior

I think unpublished pages should not be returned

Optional: Screenshots/Links that demonstrate the issue

image

Optional: Suggestion for a possible fix

I am not sure if this behavior is intentional or not, but I am not sure if there is actually a way to override this and just get published pages as is the default for a regular find/get

Steps to reproduce the issue

  1. Have a page reference field where some pages have been selected that are unpublished.

adrianbj avatar Sep 11 '24 20:09 adrianbj