From 8768bee62815c3f1e729a1f9ed372d9a4869edc5 Mon Sep 17 00:00:00 2001 From: Josh Waihi Date: Fri, 23 Feb 2024 16:37:53 +1300 Subject: [PATCH] Typo fix on offset fix in #698. --- .../next/modules/next_jsonapi/src/Controller/EntityResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php b/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php index 5bbe426d..a05cd17f 100644 --- a/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php +++ b/modules/next/modules/next_jsonapi/src/Controller/EntityResource.php @@ -100,7 +100,7 @@ protected function getJsonApiParams(Request $request, ResourceType $resource_typ $max = $page['limit']; } - $params[OffsetPage::KEY_NAME] = new OffsetPage($query['offset'] ?? OffsetPage::DEFAULT_OFFSET, $max); + $params[OffsetPage::KEY_NAME] = new OffsetPage($page['offset'] ?? OffsetPage::DEFAULT_OFFSET, $max); return $params; }