I have a view that displays nodes of a certain type, with a "Has image" filter set to "Yes". The image field on the content type is optional and not multiple. If I create a node of this type that initially has an image, then later edit the node and delete the image, it will still show up in the view. In other words, the view is displaying nodes that used to have images, as well as nodes that currently have images.

Comments

der-hase’s picture

Same Problem here, did you get an solution ?

claudiu.cristea’s picture

This happens because images are removed from files table but they remain in the CCK table ( content_field_<field-name> or content_type_<content-type-name>). The views handler does not test the relation with files table, instead he sees the CCK values in the CCK table and assume that the images (files) exists.

I'm not sure that is a imagefield issue... To be investigated!

quicksketch’s picture

Status: Active » Closed (duplicate)

This isn't a bug in the Views filter, it's caused by #254886: Database entry remains after delete image.