This bug was introduced here: processwire/processwire@63e555f#diff-02e6411f0efd862ee8bec32d0307b7d57cb0b1014b51054342bc11497b20eba6
getSelectedPages() does not return pages with a template specified in the additional templates setting (template_ids). By the looks of it, it only passes a single template to getById.
In practice, this results in selected pages not appearing in the list, even though their ID is in the field value.
Steps to replicate:
- Create a new InputfieldPageAutocomplete field
- Select a template under Selectable pages
- Select Additional templates
- Add the field to a page
- Select pages of all template types and save
- Only pages of the initial template will appear in the list.
This bug was introduced here: processwire/processwire@63e555f#diff-02e6411f0efd862ee8bec32d0307b7d57cb0b1014b51054342bc11497b20eba6
getSelectedPages() does not return pages with a template specified in the additional templates setting (template_ids). By the looks of it, it only passes a single template to getById.
In practice, this results in selected pages not appearing in the list, even though their ID is in the field value.
Steps to replicate: