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

nedjo’s picture

Thanks, fix applied.

jpwillms’s picture

still 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.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)