Skip to content

Commit

Permalink
HTML::Form::find_input() has a 1-based index
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Feb 21, 2020
1 parent 2a0e4ad commit 5d631c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WWW/Mechanize.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ sub tick {
my $set = @_ ? shift : 1; # default to 1 if not passed

# loop though all the inputs
my $index = 0;
my $index = 1;
while ( my $input = $self->current_form->find_input( $name, 'checkbox', $index ) ) {
# Can't guarantee that the first element will be undef and the second
# element will be the right name
Expand Down

0 comments on commit 5d631c2

Please sign in to comment.