Skip Menu |

This queue is for tickets about the CGI-FormBuilder CPAN distribution.

Report information
The Basics
Id: 55789
Status: resolved
Priority: 0/
Queue: CGI-FormBuilder

Owner: Nobody in particular
Requestors: DWUEPPEL [...]

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

Subject: CGI::FormBuilder::Source::File Bug
From: DWUEPPEL [...]
Download (untitled) / with headers
text/plain 1.1k
I was using the CGI::FormBuilder::Source::File part to create my forms, however when I had a one value checkbox entry I was getting incorrect behavior. For example with this type of entry: cb_input: type: checkbox name: Option options: active=Have this item active I would get two checkboxes instead of one. one called 'active' and the other 'Have this item active'. I tracked this down to what looks like a problem with the file that splits the options apart. here is the patch that I did to solve the issue. Let me know if there is a better way to do this or if this patch is unnecessary. --- 2010-01-05 09:55:40.000000000 -0500 +++ CGI/FormBuilder/Source/ 2010-01-05 09:55:43.000000000 -0500 @@ -166,7 +166,7 @@ $ptr->{$term} = (ref $ptr->{$term}) ? [ @{$ptr->{$term}}, @val ] : @val > 1 ? \@val : $val[0]; } else { - $ptr->{$term} = @val > 1 ? \@val : $val[0]; + $ptr->{$term} = @val > 1 ? \@val : ref($val[0]) eq 'ARRAY' ? \@val : $val[0]; } $inval = 1; } else {

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to