Skip Menu |

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

Report information
The Basics
Id: 34667
Status: new
Priority: 0/
Queue: WWW-Bugzilla

People
Owner: Nobody in particular
Requestors: Steffen_Ullrich [...] genua.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.3
Fixed in: (no value)



Subject: patch WWW::Bugzilla to support bugzilla versions w/o keywords
when updating Bugzilla.pm checks first, if the field is hidden and only after that if the field should be set. We have a locally installed bugzilla which does not have "keywords" field. The patch changes the behavior, so that the it only checks, that the field is not hidden if it should change the value in the field. Thus if the program does not set keywords it will not check for the field and not break, if the installation does not have the field. Regards, Steffen
Subject: Bugzilla.pm.patch
--- Bugzilla.pm.orig 2008-04-04 10:24:39.000000000 +0200 +++ Bugzilla.pm 2008-04-04 10:26:09.000000000 +0200 @@ -706,8 +706,11 @@ $self->{assigned_to} = undef; } foreach my $field ( keys %update_field_map ) { - next if $mech->current_form->find_input($update_field_map{$field})->type eq 'hidden'; - $mech->field( $update_field_map{$field}, $self->{$field} ) if defined($self->{$field}); + next if ! defined($self->{$field}); + my $f = $mech->current_form->find_input($update_field_map{$field}); + die "no field $update_field_map{$field} in current form\n" if ! $f; + next if $f->type eq 'hidden'; + $mech->field( $update_field_map{$field}, $self->{$field} ); } } else { foreach my $field ( keys %new_field_map ) { @@ -854,4 +857,3 @@ =cut 1; -