Hello there,

There's a bug in function pager_query() found in "includes/pager.inc" file.

- To reproduce the bug, call pager_query() and for the 3rd parameter ($element), pass in a value that is greater than zero.
- The behavior I was expecting is to fetch records from database starting from a specific position (LIMIT from, size).
- Instead, the "from" is always 0 and returns top-most records, always.

Attached is a patch to fix this bug. I hope you'd integrate into next major release.

Thanks.

/Comrax

CommentFileSizeAuthor
includes_pager.inc_.patch463 bytescomrax

Comments

comrax’s picture

Status: Active » Closed (fixed)

OK, there's something really messy with this function. Please disregard my previous post, I am going to write my own pager. Thank you.

/Comrax