close #2135 (#mxb4e4) Fixed: Broken collect scope for limit and page column.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user