Whoops! Was reporting ASSIGNED bugs as being closed. Also, changed

it to report the resolution of the bug instead of the word "closed".
Many thanks to dbaron@fas.harvard.edu for suggesting this change, and
reporting the bug.
This commit is contained in:
terry%mozilla.org 1999-11-03 00:44:29 +00:00
parent ef6a9e0b86
commit 27e39bfe08

View File

@ -125,12 +125,14 @@ sub DescDependencies {
my @verbose;
my $count = 0;
foreach my $i (@list) {
SendSQL("select bug_status from bugs where bug_id = $i");
my ($bug_status) = (FetchSQLData());
my $desc = "[Closed]";
if ($bug_status eq "OPEN" || $bug_status eq "NEW" ||
SendSQL("select bug_status, resolution from bugs where bug_id = $i");
my ($bug_status, $resolution) = (FetchSQLData());
my $desc;
if ($bug_status eq "NEW" || $bug_status eq "ASSIGNED" ||
$bug_status eq "REOPENED") {
$desc = "";
} else {
$desc = "[$resolution]";
}
push(@verbose, $i . "$desc");
$count++;