From 3141e713b71db42eb637eb29bd8198e53d502920 Mon Sep 17 00:00:00 2001 From: Mateusz Uzdowski Date: Thu, 28 Jun 2012 13:19:13 +1200 Subject: [PATCH] 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. --- model/MySQLDatabase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/MySQLDatabase.php b/model/MySQLDatabase.php index 0d3324c40..dfada7ad8 100644 --- a/model/MySQLDatabase.php +++ b/model/MySQLDatabase.php @@ -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; }