Reviewed & tested by the community
Project:
Node Images
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2007 at 04:52 UTC
Updated:
18 Dec 2007 at 16:12 UTC
Jump to comment: Most recent
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