From 9b72a29607e215a8b23c67e1f2d8cfaa0cde253a Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 23 Jul 2015 14:34:19 +0930 Subject: [PATCH] Number is a filter, not page param --- framework/core/src/Api/Actions/Posts/IndexAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Api/Actions/Posts/IndexAction.php b/framework/core/src/Api/Actions/Posts/IndexAction.php index 71881898e..dcae21373 100644 --- a/framework/core/src/Api/Actions/Posts/IndexAction.php +++ b/framework/core/src/Api/Actions/Posts/IndexAction.php @@ -78,7 +78,7 @@ class IndexAction extends SerializeCollectionAction if ($discussionId = $request->get('filter.discussion')) { $where['discussion_id'] = $discussionId; } - if ($number = $request->get('page.number')) { + if ($number = $request->get('filter.number')) { $where['number'] = $number; } if ($userId = $request->get('filter.user')) {