Subject: | Render::Simple bug with prefiling radio groups. |
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 |
319c319
< $output .= ' checked="checked"' if $option->{value} eq $self->fif;
---
> $output .= ' checked="checked"' if $option->{value} eq $field->fif;