diff --git a/package.json b/package.json index 7a9d8db1..c329be02 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,9 @@ "enzyme-adapter-react-16": "^1.5.0", "jest-cli": "^23.6.0" }, + "resolutions": { + "colors": "1.1.2" + }, "jest": { "roots": [ "client/src" diff --git a/src/Controllers/ElementSiteTreeFilterSearch.php b/src/Controllers/ElementSiteTreeFilterSearch.php index 8361ef9b..7f444df2 100644 --- a/src/Controllers/ElementSiteTreeFilterSearch.php +++ b/src/Controllers/ElementSiteTreeFilterSearch.php @@ -49,7 +49,7 @@ protected function applyDefaultFilters($query) // Check whether the search term exists in the nested page content $pageContent = $siteTree->getElementsForSearch(); - return (bool) stripos($pageContent, $this->params['Term']) !== false; + return stripos($pageContent, $this->params['Term']) !== false; }); if ($siteTrees->count()) {