If you defined multiple roles and use the nodeaccess module to show or hide images depending on role, the gallery shows the correct number of images it contains, but if you browse the gallery, you might get empty pages at the end. This is caused by the pager_query() at line 171 of image_gallery.module. The solution is to repeat the query with COUNT(DISTINCT(n.nid)) instead of NULL at the end of pager_query(), see the api. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | image_gallery.module.patch | 963 bytes | VDG |
| image_gallery.module.patch | 1000 bytes | VDG |
Comments
Comment #1
drewish commentedpatch doesn't apply cleanly...
Comment #2
VDG commentedWell, it did on 5.x-2.x-dev (recommended at the time). New patch for 5.x-1.6.
Comment #3
VDG commentedComment #4
drewish commentedMy bad, thanks for the re-roll, ccommitted to HEAD DRUPAL-5 and DRUPAL-5--2.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.