Bug 292423: [BUGZILLA] mozbot fails on "bug XXX" searches if the installation has disabled target_milestone
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin git-svn-id: svn://10.0.0.236/trunk@175813 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9cf78bc935
commit
ac8b28be7f
@ -411,8 +411,10 @@ sub GotURI {
|
||||
foreach my $field (keys %fieldMap) {
|
||||
my @arr = $xml_bug->getElementsByTagName($field);
|
||||
if (@arr) {
|
||||
my $str = $arr[0]->getFirstChild->getData();
|
||||
$bug{$fieldMap{$field}} = $str;
|
||||
my $firstChild = $arr[0]->getFirstChild();
|
||||
if (defined $firstChild) {
|
||||
$bug{$fieldMap{$field}} = $firstChild->getData();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user