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

findRaw() returns page ID with `pid` prefix for page reference fields in a table field.

Open adrianbj opened this issue 1 year ago • 0 comments

Short description of the issue

If you have a table field with a PR field as one of the subfields, you will get a string like: image

instead of an array like: image

Expected behavior

An clean array of PIDs (without the pid prefix) should be returned

Actual behavior

See screenshot above

Steps to reproduce the issue

  1. Create a Profields Table field with a page reference subfield
  2. Make a $pages->findRaw() call to find pages with this table field.

adrianbj avatar Sep 11 '24 20:09 adrianbj