Closed (fixed)
Project:
SQL Search (Trip Search)
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2005 at 16:05 UTC
Updated:
4 Oct 2005 at 23:00 UTC
I found that in SQL Search (Trip_search) is error in pagination.
Error is in function trip_search_page().
There is two places wrong used variable $max which have be changed to variable_get('trip_search_max', 10).
bad pagination:
line 223:
$results = array_slice($results, $from, $max);
line 236:
if ($pager = theme('pager', NULL, $max, 0, array('keys' => urlencode($raw_keys)))) {
And to repair this problem you can change variable $max to variable_get('trip_search_max', 10):
line 223:
$results = array_slice($results, $from, variable_get('trip_search_max', 10));
line 236:
if ($pager = theme('pager', NULL, variable_get('trip_search_max', 10), 0, array('keys' => urlencode($raw_keys)))) {
Comments
Comment #1
nedjoThanks, fix applied.
Comment #2
jpwillms commentedstill having problems with pagination.
made the recommend changes, and in addition tried the CVS version. Both still do not work for me.
Still says viewing 1 to 10 of 16, and shows about 20 pages and won't let me go to page 2 (keeps going back to page one).
page size is set to 10
Cheers.
Comment #3
(not verified) commentedComment #4
(not verified) commentedComment #5
(not verified) commentedComment #6
(not verified) commentedComment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commentedComment #10
(not verified) commented