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: 49560
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: gshank [...] cpan.org
Requestors: carlachambers [...] gmail.com
Cc:
AdminCc:

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



Subject: Render::Simple bug with prefiling radio groups.
Download (untitled) / with headers
text/plain 604b
There's a small bug with HTML::FormHandler::Renderer::Simple applying defaults to radio groups. It doesn't seem to work due to the comparison being made using $self->fif instead of the field ($field->fif) being iterated over. Specifically, the method render_radio_group contains the following line of code (line 319), used to apply the "checked" attribute to the input tag: output .= ' checked="checked"' if $option->{value} eq $self->fif; This, as far as I can tell, should be: output .= ' checked="checked"' if $option->{value} eq $field->fif; There's a patch attached if you need. Cheers
Subject: patch.diff
Download patch.diff
text/x-diff 163b
319c319 < $output .= ' checked="checked"' if $option->{value} eq $self->fif; --- > $output .= ' checked="checked"' if $option->{value} eq $field->fif;
Not sure when this was fixed, but it was a while back... definitely fixed in 0.29


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.