Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-FormHandler CPAN distribution.

Report information
The Basics
Id: 61554
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: Nobody in particular
Requestors: TJC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.32002
Fixed in: (no value)



Subject: Select widget ignores options with value of zero when setting SELECTED flag
HTML::FormHandler::Widget::Field::Select has a bug where it performs a block based on whether the value is true (ie. non-zero), however really it should be checking whether the value is *defined* or not. I think.. This is line 35 of Select.pm if ( my $ffif = $result->fif ) { It should really be: if ( defined (my $ffif = $result->fif) ) { This fixes a bug I am seeing where select boxes with option=0 are not always re-displayed as such when viewing a form.
Fixed in 0.32003