Closed (fixed)
Project:
Apache Solr Views
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 11:56 UTC
Updated:
17 Apr 2012 at 15:31 UTC
Hi,
Pagination is not working in 7.x version, function apachesolr_do_query, is not accepting as second parameter the page, it must be added in the query prior to call it.
This is the code to modifie in apachesolr_views_query.inc:
- list($final_query, $response) = apachesolr_do_query($query, $this->pager->current_page);
+
+ $query->page = $this->pager->current_page;
+ list($final_query, $response) = apachesolr_do_query($query);
i send a patch.
Best
| Comment | File | Size | Author |
|---|---|---|---|
| apachesolr_views_pagination.diff | 890 bytes | david.gil |
Comments
Comment #1
rjbrown99 commentedPatch here, changing status.
Comment #2
becw commentedThis patch works and is required for correct pagination.
Comment #3
shenzhuxi commentedConfirm works.
Should be committed.
Comment #4
dstuart commentedMerged into dev