Subject: | method 'field' calls $form->find_input with incorrect number of arguments |
Distribution: WWW-Mechanize-0.36
Perl version: v5.8.0 built for i386-linux-thread-multi
OS version: Linux 2.4.12-686 (Debian GNU/Linux)
HTML::Form::find_input expects three parameters ($name, $type, $no). WWW::Mechanize::field calls this method with only two parameters.
$form->find_input($name, $number)->value($value);
The $type parameter is missing.
This line should be changed to:
$form->find_input($name, undef, $number)->value($value);
Thanks for your work on this and other modules.
/prakash kailasa
--- /usr/local/share/perl/5.8.0/WWW/Mechanize.pm 2003-02-04 12:38:42.000000000 -0500
+++ local/lib/perl5/WWW/Mechanize.pm 2003-02-07 11:37:40.000000000 -0500
@@ -321,7 +321,7 @@
my $form = $self->{form};
if ($number > 1) {
- $form->find_input($name, $number)->value($value);
+ $form->find_input($name, undef, $number)->value($value);
} else {
$form->value($name => $value);
}