Page 1 of 1

How is possibile to limit the per_page settings in filter?

Posted: 25 Oct 2024, 14:11
by mizar001
I have so many users and they can edit their filters as much as they want.

Sometimes people decide to set the per_page of a filter to 100.000 records. This obviously stresses the server and after some times the page is returning blank with Fatal error in the logs.

How to prevent people to mess with the filters or limit at least some parameters?

Re: How is possibile to limit the per_page settings in filter?

Posted: 25 Oct 2024, 15:48
by cas
There is only $g_default_limit_view. unfortunately there is no $g_max_limit_view :mrgreen:
So 3 options:
- live with it
- implement something like $g_max_limit_view
- adjust the code (not a good idea but possible)
-- check function print_filter_per_page in filter_form_api.php