From 3ff60a289c71c3ccad49c85fabf489a8b5c240c1 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 29 Sep 2023 16:34:11 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1821 --- .../InputfieldPageAutocomplete.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module b/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module index 131b6a35..4ed5ab8d 100644 --- a/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module +++ b/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module @@ -290,7 +290,7 @@ class InputfieldPageAutocomplete extends Inputfield implements InputfieldHasArra if($this->parent_id) { if($selectorLength) { // if a selector was specified, AND a parent, then we'll use the parent as a root - $selector .= 'has_parent=' . (int) $this->parent_id; + $selector .= ',has_parent=' . (int) $this->parent_id; } else { // otherwise matches must be direct children of the parent $selector = 'parent_id=' . (int) $this->parent_id;