Skip to content

Commit ce0e821

Browse files
Iterate over results to enforce calling offsetGet() function
This function reads titles for documents without titles
1 parent 4454c08 commit ce0e821

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Common/SolrPaginator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ public function __construct(
4242
protected function updatePaginatedItems(int $itemsPerPage, int $offset): void
4343
{
4444
$this->solrSearch->submit($offset, $itemsPerPage);
45-
$this->paginatedItems = $this->solrSearch->toArray();
45+
foreach ($this->solrSearch as $item) {
46+
$this->paginatedItems[] = $item;
47+
}
4648
}
4749

4850
protected function getTotalAmountOfItems(): int

0 commit comments

Comments
 (0)