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:

http://drupal.org/node/151978

To fix, simply change the test on line 404 of image_gallery.module to:

      if ($page && $node->type == 'image' && !$teaser) {

Comments

raintonr’s picture

Status: Active » Needs review

Sorry, status should be patched for review of course given the snippet I included.

drewish’s picture

seems 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.

raintonr’s picture

StatusFileSize
new749 bytes

No worries... patch attached.

drewish’s picture

Status: Needs review » Fixed
StatusFileSize
new837 bytes

great. made one small change, put !$teaser next to $page. committed to HEAD and DRUPAL-5

Anonymous’s picture

Status: Fixed » Closed (fixed)