BUG Fix parsing error on CMSSiteTreeFilter

This commit is contained in:
Maxime Rainville 2020-10-22 11:52:02 +13:00
parent f4edd35989
commit f9c26cefa3

View File

@ -203,7 +203,7 @@ abstract class CMSSiteTreeFilter implements LeftAndMain_SearchFilter
switch ($name) { switch ($name) {
case 'Term': case 'Term':
$query = $query->filterAny(array( $query = $query->filterAny([
'URLSegment:PartialMatch' => Convert::raw2url($val), 'URLSegment:PartialMatch' => Convert::raw2url($val),
'Title:PartialMatch' => $val, 'Title:PartialMatch' => $val,
'MenuTitle:PartialMatch' => $val, 'MenuTitle:PartialMatch' => $val,