mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
Firewall / Aliases - all doesn't return all, but more like all -1.
This commit is contained in:
parent
6a2c0c4e72
commit
297cc48941
@ -96,9 +96,9 @@ class AliasUtilController extends ApiControllerBase
|
||||
{
|
||||
$this->sessionClose();
|
||||
|
||||
$itemsPerPage = intval($this->request->getPost('rowCount', 'int', 9999));
|
||||
$itemsPerPage = intval($this->request->getPost('rowCount', 'int', -1));
|
||||
$currentPage = intval($this->request->getPost('current', 'int', 1));
|
||||
$offset = ($currentPage - 1) * $itemsPerPage;
|
||||
$offset = $itemsPerPage > 0 ? ($currentPage - 1) * $itemsPerPage : 0;
|
||||
|
||||
$backend = new Backend();
|
||||
$entries = json_decode($backend->configdpRun("filter list table", array($alias, "json")), true);
|
||||
@ -128,7 +128,7 @@ class AliasUtilController extends ApiControllerBase
|
||||
$item[$ekey] = $evalue;
|
||||
}
|
||||
return $item;
|
||||
}, array_slice($entry_keys, $offset, $itemsPerPage));
|
||||
}, array_slice($entry_keys, $offset, $itemsPerPage > 0 ? $itemsPerPage : null));
|
||||
|
||||
if (
|
||||
$this->request->hasPost('sort') &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user