close #2135 (#mxb4e4) Fixed: Broken collect scope for limit and page column.

This commit is contained in:
Cüneyt Şentürk
2021-06-22 19:12:33 +03:00
parent d5127ddb1f
commit 6f753553e0
8 changed files with 8 additions and 8 deletions

View File

@ -39,7 +39,7 @@ abstract class Controller extends BaseController
*/
public function paginate($items, $perPage = 15, $page = null, $options = [])
{
$perPage = $perPage ?: request('limit', setting('default.list_limit', '25'));
$perPage = $perPage ?: (int) request('limit', setting('default.list_limit', '25'));
$page = $page ?: (Paginator::resolveCurrentPage() ?: 1);