mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 15:23:11 +02:00
Fix issue processwire/processwire-issues#642 where new ProcessPageSearch feature was not using correct edit URL when searching for users
This commit is contained in:
@@ -652,13 +652,13 @@ class ProcessPageType extends Process implements ConfigurableModule, WirePageEdi
|
||||
$items = $this->pages->find(trim($selector, ", "));
|
||||
|
||||
foreach($items as $item) {
|
||||
$result['items'][] = $this->getSearchItemInfo($item);
|
||||
$result['items'][] = $this->getSearchItemInfo($item, $options);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
protected function getSearchItemInfo(Page $item) {
|
||||
protected function getSearchItemInfo(Page $item, array $options) {
|
||||
return array(
|
||||
'id' => $item->id,
|
||||
'name' => $item->name,
|
||||
|
Reference in New Issue
Block a user