mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(mvc) support "All" entries on grid filter
This commit is contained in:
parent
e62668db6c
commit
5d8b97e2b8
@ -102,9 +102,10 @@ class UIModelGrid
|
||||
}
|
||||
|
||||
// if result is relevant, count total and add (max number of) items to result.
|
||||
// $itemsPerPage = -1 is used as wildcard for "all results"
|
||||
if ($searchFound) {
|
||||
if (count($result['rows']) < $itemsPerPage &&
|
||||
$recordIndex >= ($itemsPerPage*($currentPage-1))
|
||||
if ((count($result['rows']) < $itemsPerPage &&
|
||||
$recordIndex >= ($itemsPerPage*($currentPage-1)) || $itemsPerPage == -1)
|
||||
) {
|
||||
$result['rows'][] = $row;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user