Closed (fixed)
Project:
Drupal core
Version:
6.13
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2009 at 11:11 UTC
Updated:
23 Jul 2009 at 13:24 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| includes_pager.inc_.patch | 463 bytes | comrax |
Comments
Comment #1
comrax commentedOK, there's something really messy with this function. Please disregard my previous post, I am going to write my own pager. Thank you.
/Comrax