BUG: notify PaginatedList the full-text results are already limited.

PaginatedList needs to be notified about this, otherwise it will
errorneously try to further limit the already limited set, making the
subsequent pages empty.
This commit is contained in:
Mateusz Uzdowski 2012-06-28 13:19:13 +12:00
parent 0dfc82342a
commit 3141e713b7

View File

@ -880,6 +880,9 @@ class MySQLDatabase extends SS_Database {
$list->setPageLEngth($pageLength);
$list->setTotalItems($totalCount);
// The list has already been limited by the query above
$list->setLimitItems(false);
return $list;
}