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

Anonymous’s picture

change on line 555 (node_image.module)

if (isset($count) && $count === 0) return;
to
if (isset($count) && $count == 0) return;

Anonymous’s picture

if (isset($count) && $count == "0") return;

marcoBauli’s picture

Status: Active » Reviewed & tested by the community

yep, that works!

in function theme_node_images_view, on line 583 here, from:

if (isset($count) && $count === 0) return

to:

if (isset($count) && $count == "0") return

thanks