From e39995263ec26c191a46cd2dcf0ab308d21cd0c2 Mon Sep 17 00:00:00 2001 From: Bertrand Dunogier Date: Mon, 8 Jun 2020 12:43:19 +0200 Subject: [PATCH] EZP-31676: keep the offset defined in the query --- src/API/QueryFieldService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/QueryFieldService.php b/src/API/QueryFieldService.php index 388e402..d1c4af8 100644 --- a/src/API/QueryFieldService.php +++ b/src/API/QueryFieldService.php @@ -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(