1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Limit per page to 5000

This commit is contained in:
David Bomba 2023-02-23 18:37:15 +11:00
parent 0d6c8f05e1
commit 36655eabec

View File

@ -556,6 +556,7 @@ class BaseController extends Controller
{
if (request()->has('per_page')) {
return min(abs((int)request()->input('per_page', 20)), 5000);
// return abs((int)request()->input('per_page', 20));
}
return 20;