mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 19:24:28 +02:00
Fix issue processwire/processwire-issues#1821
This commit is contained in:
@@ -290,7 +290,7 @@ class InputfieldPageAutocomplete extends Inputfield implements InputfieldHasArra
|
|||||||
if($this->parent_id) {
|
if($this->parent_id) {
|
||||||
if($selectorLength) {
|
if($selectorLength) {
|
||||||
// if a selector was specified, AND a parent, then we'll use the parent as a root
|
// 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 {
|
} else {
|
||||||
// otherwise matches must be direct children of the parent
|
// otherwise matches must be direct children of the parent
|
||||||
$selector = 'parent_id=' . (int) $this->parent_id;
|
$selector = 'parent_id=' . (int) $this->parent_id;
|
||||||
|
Reference in New Issue
Block a user