It's only necessary for the image_gallery.module to set menu location when a single image is on display. This does not make sense for teasers.
In addition, this breaks views menus for those that include the teaser of an image node as discussed:
To fix, simply change the test on line 404 of image_gallery.module to:
if ($page && $node->type == 'image' && !$teaser) {
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | image_gallery_162496.module.patch | 837 bytes | drewish |
| #3 | image.162496.patch | 749 bytes | raintonr |
Comments
Comment #1
raintonr commentedSorry, status should be patched for review of course given the snippet I included.
Comment #2
drewish commentedseems like a logical change. would you mind rolling a patch? it's the easiest way for me to review and commit changes. see http://drupal.org/patch/create if you need information on how to do so.
Comment #3
raintonr commentedNo worries... patch attached.
Comment #4
drewish commentedgreat. made one small change, put !$teaser next to $page. committed to HEAD and DRUPAL-5
Comment #5
(not verified) commented