Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I ported my 6.x site to 7.x and in pages NOT INCLUDED in pager list array
I got an error in line 286 while evaluating $list[$key] when $key value is "-1"
in order to avoid it I added the following line right before the foreach loop (line 284)
if ($key == -1) {
$nav['current_index'] = $key;
return $nav;
}
Thanks for the great module and the port.
Ben
Comment | File | Size | Author |
---|---|---|---|
#1 | custom_pagers-1346194-d6.patch | 468 bytes | tobiasb |
#1 | custom_pagers-1346194.patch | 469 bytes | tobiasb |
Comments
Comment #1
tobiasbHere is a patch for the current d6 and d7 branch.
Comment #2
eloivaque#1 for drupal 7, it's works for me
Comment #3
gappleMarked #1850360: Undefined offset: -1 in pager_entries_by_key() as duplicate
Comment #3.0
gapplewrapped the code snippet
Comment #4
mvcworks for me!
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedworks for me! :)
Comment #6
klokie CreditAttribution: klokie commented#1 FTW! :)
Comment #7
NWOM CreditAttribution: NWOM commented#1 still works. Wish we had an active maintainer to get this committed and release a stable version of the module with security advisory policy.