Skip to content

Commit

Permalink
EZP-31676: keep the offset defined in the query
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Jun 8, 2020
1 parent a9ff4fd commit e399952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/QueryFieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function countContentItems(Content $content, string $fieldDefinitionIdent
public function loadContentItemsSlice(Content $content, string $fieldDefinitionIdentifier, int $offset, int $limit): iterable
{
$query = $this->prepareQuery($content, $fieldDefinitionIdentifier);
$query->offset = $offset;
$query->offset += $offset;
$query->limit = $limit;

return array_map(
Expand Down

0 comments on commit e399952

Please # to comment.