1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2019-12-03 09:57:36 -05:00
parent b1b968c6b5
commit c81566db7e

View File

@@ -284,6 +284,7 @@ _OUT;
*/
protected function getAjaxUrl() {
$pipe = '%7C'; // encoded pipe "|"
$selector = $this->findPagesSelector;
if($this->parent_id) {
@@ -297,7 +298,7 @@ _OUT;
}
if(count($this->template_ids)) {
$selector .= ",templates_id=" . implode('|', $this->template_ids);
$selector .= ",templates_id=" . implode($pipe, $this->template_ids);
} else if($this->template_id) {
$selector .= ",templates_id={$this->template_id}";
}
@@ -332,6 +333,9 @@ _OUT;
$selector .= "&format_name=$name";
}
$selector .= "&get=" . $this->labelFieldName;
// replace any pipes with encoded version
if(strpos($selector, '|') !== false) $selector = str_replace('|', $pipe, $selector);
return $this->config->urls->admin . "page/search/for?" . $selector;
}