Skip to content

Can't add Home to Page field via PageAutocomplete input. #19

@jasonhuck

Description

@jasonhuck

Short Description of the Issue

When using Page Autocomplete with a Page field, with no restrictions or filters on the results, the user cannot add the home page. Typing "Home" in the field does make the page appear in the autocomplete menu, but choosing it does not add it to the list of selected pages.

Expected Behavior

Choosing the home page from the autocomplete menu should add it to the list of selected pages, just as it does for any other page.

Actual Behavior

When the user chooses the home page from the autocomplete menu, nothing happens. There are no javascript errors in the console.

Steps to Reproduce the Issue

  1. Create a Page field with no restrictions or filters, using PageAutocomplete as the input type.
  2. Add this field to any template.
  3. Create a page using that template, and attempt to add the home page using that field.

Setup/Environment

  • ProcessWire version: Confirmed in 2.7 and 3.0
  • PHP version: 5.4.16

Forum thread: https://processwire.com/talk/topic/14398-selecting-the-home-page-with-page-autocomplete/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions