1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 10:45:54 +02:00
This commit is contained in:
Ryan Cramer
2023-06-22 11:31:35 -04:00
parent fc5b67508f
commit d089e07a63

View File

@@ -372,6 +372,8 @@ class InputfieldPage extends Inputfield implements ConfigurableModule {
$instance = null;
}
$selector = self::populateFindPagesSelector($page, $findPagesSelector, $instance);
if($templateIDs) $selector = trim("$selector, templates_id=$templateIDs", ", ");
if($this->parent_id) $selector = trim("$selector, parent_id=$this->parent_id", ", ");
$children = $pages->find($selector);
} else if($this->findPagesCode) {