Skip to content

Commit

Permalink
BUG: notify PaginatedList the full-text results are already limited.
Browse files Browse the repository at this point in the history
PaginatedList needs to be notified about this, otherwise it will
errorneously try to further limit the already limited set, making the
subsequent pages empty.
  • Loading branch information
mateusz committed Jun 28, 2012
1 parent 0dfc823 commit 3141e71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/MySQLDatabase.php
Expand Up @@ -880,6 +880,9 @@ public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $
$list->setPageLEngth($pageLength);
$list->setTotalItems($totalCount);

// The list has already been limited by the query above
$list->setLimitItems(false);

return $list;
}

Expand Down

0 comments on commit 3141e71

Please sign in to comment.