From f9c26cefa36ac4a78353c910831c120f6fa5a96e Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Thu, 22 Oct 2020 11:52:02 +1300 Subject: [PATCH] BUG Fix parsing error on CMSSiteTreeFilter --- code/Controllers/CMSSiteTreeFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Controllers/CMSSiteTreeFilter.php b/code/Controllers/CMSSiteTreeFilter.php index 9ea46e16..92e73c2a 100644 --- a/code/Controllers/CMSSiteTreeFilter.php +++ b/code/Controllers/CMSSiteTreeFilter.php @@ -203,7 +203,7 @@ abstract class CMSSiteTreeFilter implements LeftAndMain_SearchFilter switch ($name) { case 'Term': - $query = $query->filterAny(array( + $query = $query->filterAny([ 'URLSegment:PartialMatch' => Convert::raw2url($val), 'Title:PartialMatch' => $val, 'MenuTitle:PartialMatch' => $val,