Skip to content

Commit

Permalink
Merge pull request #16208 from craftcms/bugfix/16204-entry-types-search
Browse files Browse the repository at this point in the history
use andWhere
  • Loading branch information
brandonkelly authored Nov 27, 2024
2 parents 85c53a1 + 737777b commit 7279de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/services/Entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

Expand Down

0 comments on commit 7279de4

Please sign in to comment.