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:
mkanat%kerio.com 2005-07-08 02:44:40 +00:00
Родитель b8dff89bd5
Коммит b5bd2cdbd1
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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();
}
}
}
}