From 35f2e4c3018224206aaea42ba3c72eb123613718 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Mon, 12 Feb 2024 07:09:07 -0800 Subject: [PATCH] Fixed #14344 735966cb593dfc52cbcda438af4736ad8d0f351f part 2 --- CHANGELOG.md | 1 + src/services/Fields.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c34f0ae90d1..73ec1e524a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Exception response data no longer includes an `error` key with the exception message. `message` should be used instead. ([#14346](https://github.com/craftcms/cms/pull/14346)) - Fixed an error that occurred when adding a new block to a Matrix field with an overridden handle. ([#14350](https://github.com/craftcms/cms/issues/14350)) - Fixed a bug where opening a disclosure menu wasn’t hiding others. ([#14354](https://github.com/craftcms/cms/issues/14354)) +- Fixed a bug where non-global custom fields were being shown on the Fields index page when searching. ([#14344](https://github.com/craftcms/cms/issues/14344)) - Fixed a bug where read/write splitting was always getting disabled for GraphQL POST requests. ([#14324](https://github.com/craftcms/cms/issues/14324)) - Fixed a bug where GraphQL schema edit pages could include empty category headings. diff --git a/src/services/Fields.php b/src/services/Fields.php index b70146631b3..eda6404001a 100644 --- a/src/services/Fields.php +++ b/src/services/Fields.php @@ -1302,7 +1302,7 @@ public function getTableData(int $page, int $limit, ?string $searchTerm): array if ($searchTerm !== null && $searchTerm !== '') { $searchParams = $this->_getSearchParams($searchTerm); if (!empty($searchParams)) { - $query->where(['or', ...$searchParams]); + $query->andWhere(['or', ...$searchParams]); } }