Closed (duplicate)
Project:
ImageField
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2008 at 14:43 UTC
Updated:
24 Sep 2008 at 16:41 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| imagefield.module.patch | 520 bytes | hanoii |
Comments
Comment #1
hanoiiRelated to same bug in imagecache #260669: Imagecache field formatter is generating broken output when no actual image (or default) is available.
Comment #2
hanoiiI 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.