1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 22:34:15 +02:00

Fix issue processwire/processwire-issues#659 where PageFinder "_custom" option didn't yet have support for "field.owner.property=value" selectors

This commit is contained in:
Ryan Cramer
2018-08-08 15:05:21 -04:00
parent 82641a5521
commit 2e672428a4

View File

@@ -522,6 +522,7 @@ class PageFinder extends Wire {
$selectors->remove($selector); $selectors->remove($selector);
if(!empty($options['allowCustom'])) { if(!empty($options['allowCustom'])) {
$_selectors = $this->wire(new Selectors($selector->value())); $_selectors = $this->wire(new Selectors($selector->value()));
$this->preProcessSelectors($_selectors, $options);
/** @var Selectors $_selectors */ /** @var Selectors $_selectors */
foreach($_selectors as $s) $selectors->add($s); foreach($_selectors as $s) $selectors->add($s);
} }