File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ protected function setPagination(): void
279279 $ perPage = $ this ->config ->get ('pagination.item_per_page ' , 20 );
280280
281281 $ this ->limit = (int ) $ param ->get ('limit ' , $ perPage );
282- $ page = $ param ->get ('page ' , null );
282+ $ page = $ param ->get ('page ' , 1 );
283283 if ($ page ) {
284284 $ this ->page = (int ) $ page ;
285285 }
Original file line number Diff line number Diff line change @@ -150,10 +150,7 @@ protected function handleRestPagination(
150150 ->query ()
151151 ->count ('id ' );
152152
153- $ currentPage = (int ) $ this ->param ->get ('page ' , 1 );
154-
155- $ this ->pagination ->setTotalItems ($ totalItems )
156- ->setCurrentPage ($ currentPage );
153+ $ this ->pagination ->setTotalItems ($ totalItems );
157154
158155 $ limit = $ this ->pagination ->getItemsPerPage ();
159156 $ offset = $ this ->pagination ->getOffset ();
You can’t perform that action at this time.
0 commit comments