From a9c1730cfce9e699c325c25c0f003e98a31f748e Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Mon, 25 Nov 2024 15:34:57 +0000 Subject: [PATCH 1/2] use andWhere --- src/services/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/Entries.php b/src/services/Entries.php index dbeac9218be..2b6171dff9c 100644 --- a/src/services/Entries.php +++ b/src/services/Entries.php @@ -1310,7 +1310,7 @@ private function prepTableData( if ($searchTerm !== null && $searchTerm !== '') { $searchParams = $this->_getSearchParams($searchTerm); if (!empty($searchParams)) { - $query->where(['or', ...$searchParams]); + $query->andWhere(['or', ...$searchParams]); } } From 737777bfd34ad39179d130672fa6c84f0d3aff41 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Wed, 27 Nov 2024 13:09:48 -0800 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66aab92c753..f5caabe31b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Fixed a bug where element slideouts had Save buttons even if the user didn’t have permission to save the element. ([#16205](https://github.com/craftcms/cms/pull/16205)) +- Fixed a bug where pagination wasn’t working properly on the Entry Types index page when searching. ([#16204](https://github.com/craftcms/cms/issues/16204)) ## 5.5.3 - 2024-11-22