processwire-issues
processwire-issues copied to clipboard
findRaw() returns page ID with `pid` prefix for page reference fields in a table field.
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:
instead of an array like:
Expected behavior
An clean array of PIDs (without the pid prefix) should be returned
Actual behavior
See screenshot above
Steps to reproduce the issue
- Create a Profields Table field with a page reference subfield
- Make a
$pages->findRaw()call to find pages with this table field.