Subject: | incorrect default value for $index in tick() |
In tick(), there's this:
my $index = 0;
while($input = $self->current_form->find_input($name,"checkbox",$index)) {
This contradicts HTML::Form:
=item $input = $form->find_input($name, $type, $index)
...
The $index is the sequence number of the input matched where 1 is the
first. If combined with $name and/or $type then it select the I<n>th
input with the given name and/or type.
...
sub find_input
{
my($self, $name, $type, $no) = @_;
$no ||= 1;
So, using '0' as the default $index/$no value actually results in
the first item getting selected twice if it didn't match the first
time.
This probably isn't a big deal; I noticed it just because I'm hacking with
checkboxes. (I need a tick_all().)
(Incidentally, this is broken in 0.60, not just 0.59; rt.cpan.org's form
doesn't seem to have been notified of 0.60's release yet.)