Commit ed4c923c authored by Ad Schellevis's avatar Ad Schellevis

Revert "(ids) style fix",...

Revert "(ids) style fix", https://github.com/opnsense/core/commit/aaa0ddafe1179cebc68146bdc3c30b8b90c564b8 can cause "Allowed memory size of ... bytes exhausted", better to set a sane default max here.

This reverts commit aaa0ddaf.
parent cf34abba
...@@ -239,7 +239,7 @@ class ServiceController extends ApiControllerBase ...@@ -239,7 +239,7 @@ class ServiceController extends ApiControllerBase
$filter->add('query', new QueryFilter()); $filter->add('query', new QueryFilter());
// fetch query parameters // fetch query parameters
$itemsPerPage = $this->request->getPost('rowCount', 'int', -1); $itemsPerPage = $this->request->getPost('rowCount', 'int', 9999);
$currentPage = $this->request->getPost('current', 'int', 1); $currentPage = $this->request->getPost('current', 'int', 1);
if ($this->request->getPost('searchPhrase', 'string', '') != "") { if ($this->request->getPost('searchPhrase', 'string', '') != "") {
......
...@@ -72,7 +72,7 @@ class SettingsController extends ApiMutableModelControllerBase ...@@ -72,7 +72,7 @@ class SettingsController extends ApiMutableModelControllerBase
// fetch query parameters // fetch query parameters
$itemsPerPage = $this->request->getPost('rowCount', 'int', -1); $itemsPerPage = $this->request->getPost('rowCount', 'int', 9999);
$currentPage = $this->request->getPost('current', 'int', 1); $currentPage = $this->request->getPost('current', 'int', 1);
if ($this->request->hasPost('sort') && is_array($this->request->getPost("sort"))) { if ($this->request->hasPost('sort') && is_array($this->request->getPost("sort"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment