When the item is empty ('fid' = 0) and arrives to the formatter function, it first tries to load the default and then it formats it. However, there might no default as well and it tries to format it anyway generating, for instance, and empty img referece.

Same applies to imagecache, I will place the same patch for it on the project's issues.

CommentFileSizeAuthor
imagefield.module.patch520 byteshanoii
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hanoii’s picture

hanoii’s picture

Status: Needs review » Closed (duplicate)

I have modified the patch on the imagecache issue, and I should include the new patch here for imagefield, however, there's another issue in the imagefield queue that's related to this bug but also covers another one which is rather important, so I'll post o patch on that issue that should fix both this one and the one on #310047: Field is not removed from shared content_field_XXX table on delete.