From 4fa6a9abbeea3027b6d9ea265617999d19a4b2fe Mon Sep 17 00:00:00 2001 From: josephzhao Date: Tue, 19 Dec 2023 12:07:46 -0500 Subject: [PATCH] Update UidFilter.php isSearchEnabled function returned null error --- src/Filter/UidFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filter/UidFilter.php b/src/Filter/UidFilter.php index 4a032e9c8..65aa0fe70 100644 --- a/src/Filter/UidFilter.php +++ b/src/Filter/UidFilter.php @@ -50,7 +50,7 @@ public function filter(ProxyQueryInterface $query, string $alias, string $field, public function isSearchEnabled(): bool { - return $this->getOption('global_search'); + return $this->getOption('global_search')===null?false:$this->getOption('global_search'); } public function getDefaultOptions(): array