WWW::Bugzilla fix
WWW::Bugzilla was a great help in setting up git-bugzilla integration, but there's a small fix which needs to be applied before it would work with my Bugzilla 3 install.
The problem is that WWW::Mechanize selects the first form on a page by default, and WWW::Bugzilla fails in WWW::Mechanize while setting any field to be updated (with a 'no such field' or 'no field called comment' etc. messages). On my Bugzilla install, there's a small bug search form in the header which makes that happen.
The fix is a single line and has been emailed to the author. Here it is :
@@ -614,6 +614,7 @@
my $mech = $self->{mech};
if ($self->{bug_number}) {
+ $mech->form_name( "changeform" );
foreach my $field ( keys %update_field_map ) {
$mech->field( $update_field_map{$field}, $self->{$field} ) if defined($self->{$field});
# handle special cases
Posted by gera |
Permanent link | File under:
perl,
hacks
|
[ 0 ]