Skip to content

Commit

Permalink
Fixed #16579
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 29, 2025
1 parent 22c4b16 commit a41444a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 4

## Unreleased

- Fixed a bug where `craft\db\QueryBatcher::getSlice()` wasn’t using the database connection passed to the class constructor. ([#16579](https://github.com/craftcms/cms/issues/16579))

## 4.14.2 - 2025-01-28

- Fixed a bug where Entries fields’ entry select modals could show expand/collapse toggles for Structure sections, for elements that didn’t have any selectable descendants. ([#16506](https://github.com/craftcms/cms/issues/16506))
Expand Down
2 changes: 1 addition & 1 deletion src/db/QueryBatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getSlice(int $offset, int $limit): iterable
$slice = $query
->offset((is_int($queryOffset) ? $queryOffset : 0) + $offset)
->limit($limit)
->all();
->all($this->db);
} catch (QueryAbortedException) {
$slice = [];
}
Expand Down

0 comments on commit a41444a

Please sign in to comment.