Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit 3141e713b71db42eb637eb29bd8198e53d502920 1 parent 0dfc823
Mateusz U authored June 28, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  model/MySQLDatabase.php
3  model/MySQLDatabase.php
@@ -880,6 +880,9 @@ public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $
880 880
 		$list->setPageLEngth($pageLength);
881 881
 		$list->setTotalItems($totalCount);
882 882
 
  883
+		// The list has already been limited by the query above
  884
+		$list->setLimitItems(false);
  885
+
883 886
 		return $list;
884 887
 	}
885 888
 

0 notes on commit 3141e71

Please sign in to comment.
Something went wrong with that request. Please try again.