File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ public function createLimitControl(): LimitControl
268268 function (ViewModeSwitcher $ viewModeSwitcher ) use ($ limitControl ) {
269269 if (! isset ($ this ->getServerRequest ()->getQueryParams ()[$ limitControl ->getLimitParam ()])) {
270270 $ limit = $ viewModeSwitcher ->getViewMode ()->getPageSize ();
271- $ limitControl ->setDefaultLimit ($ limit );
271+ $ limitControl ->setDefaultLimit ($ this -> getPageSize ( $ limit) );
272272 }
273273 }
274274 );
@@ -307,7 +307,7 @@ public function createPaginationControl(Paginatable $paginatable): PaginationCon
307307 function (ViewModeSwitcher $ viewModeSwitcher ) use ($ paginationControl ) {
308308 if (! isset ($ this ->getServerRequest ()->getQueryParams ()[$ paginationControl ->getPageSizeParam ()])) {
309309 $ limit = $ viewModeSwitcher ->getViewMode ()->getPageSize ();
310- $ paginationControl ->setDefaultPageSize ($ limit )
310+ $ paginationControl ->setDefaultPageSize ($ this -> getPageSize ( $ limit) )
311311 ->apply ();
312312 }
313313 }
You can’t perform that action at this time.
0 commit comments