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 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]); } }