Skip to content

PageAutocomplete shows results disallowed by custom selector #24

@Toutouwai

Description

@Toutouwai

Short description of the issue

The PageAutocomplete inputfield shows (and allows selection of) pages that are disallowed by the custom selector defined for the field.

This is my custom selector...
id!=page.id
...and the current page is still selectable in the inputfield.

Expected behavior

Inputfield does not show pages that are disallowed by custom selector.

Actual behavior

Inputfield shows and allows selection of the disallowed page. When the page is saved there is no warning, but the value of the disallowed page is not stored in the field.

Steps to reproduce the issue

  1. Create Page field using PageAutocomplete inputfield, with custom selector set to id!=page.id
  2. In Edit Page, try selecting the current page in the PageAutocomplete inputfield.

Setup/Environment

  • ProcessWire version: 3.0.35
  • PHP version: 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions