mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
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
This commit is contained in:
parent
b8dff89bd5
commit
b5bd2cdbd1
@ -411,8 +411,10 @@ sub GotURI {
|
|||||||
foreach my $field (keys %fieldMap) {
|
foreach my $field (keys %fieldMap) {
|
||||||
my @arr = $xml_bug->getElementsByTagName($field);
|
my @arr = $xml_bug->getElementsByTagName($field);
|
||||||
if (@arr) {
|
if (@arr) {
|
||||||
my $str = $arr[0]->getFirstChild->getData();
|
my $firstChild = $arr[0]->getFirstChild();
|
||||||
$bug{$fieldMap{$field}} = $str;
|
if (defined $firstChild) {
|
||||||
|
$bug{$fieldMap{$field}} = $firstChild->getData();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user