Commit 5d8b97e2 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) support "All" entries on grid filter

parent e62668db
......@@ -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;
}
......
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