Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 2056
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: pk-cpan [...] kailasa.net
Cc:
AdminCc:

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



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); }
Thanks for the fix. It's in the new version I'm about to put out.