As the title says. When "Number of images in node teaser" or "Number of images in node body" are set to "0", all node images are shown on the teaser and the body, respectively. The expected behavior is to show no images, as opposed to the case when those fields are left blank so that all images are shown.
Comments
Comment #1
Anonymous (not verified) commentedchange on line 555 (node_image.module)
if (isset($count) && $count === 0) return;
to
if (isset($count) && $count == 0) return;
Comment #2
Anonymous (not verified) commentedif (isset($count) && $count == "0") return;
Comment #3
marcoBauli commentedyep, that works!
in function theme_node_images_view, on line 583 here, from:
if (isset($count) && $count === 0) returnto:
if (isset($count) && $count == "0") returnthanks