Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2013 at 19:45 UTC
Updated:
21 Aug 2013 at 08:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
druderman commentedThe problem is in theme_webform_element_text() at this point $value is '0' which evaluates to false.
One quickie workaround is to change it before it's rendered. Alternately, I could have recreated most of the code in my theme function. The real fix is to check if $value === 0.
Comment #2
liam morlandHere is a simple patch that fixes this issue.
Comment #3
quicksketchHi guys, thanks for the report. I'm not sure what the purpose of that conditional is for at all. Seems like the whole statement could just be deleted. I've committed this patch. Thanks!