Closed (fixed)
Project:
Link Image Field
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2009 at 21:22 UTC
Updated:
8 Aug 2009 at 00:40 UTC
If I have a node that I didn't upload a linkfiled image too, when using views and displaying linkfield image as a field in views instead of returning nothing link imagefield module it returns code with non existent src.
<A class="linkimagefield imagecache imagecache-gridnail imagecache-linkimage imagecache-gridnail_linkimage" title="" href="http://www.n.com/" target="_self"><IMG class="imagecache imagecache-gridnail" title="" alt="" src="http://www.n.com/sites/agilityvision.com/files/imagecache/gridnail/" /></A
Seems a check is need to see if the field has a value, otherwise return '' instead of the above.
Comments
Comment #1
agilpwc commentedI found the problem in
function theme_linkimagefield_imagecache
you check whether a item has empty fid and if there is default image definded. But there is no check if item has empty fid and no default image defined. In which case you would just return ''
so about line 292 add
Comment #2
johnfyoung commentedLooks good. Thanks - I've included it with a few other things that I'm still working on. Will release something (likely today).
Comment #3
johnfyoung commented