]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Whoops! Was reporting ASSIGNED bugs as being closed. Also, changed
authorterry%mozilla.org <>
Wed, 3 Nov 1999 08:44:29 +0000 (08:44 +0000)
committerterry%mozilla.org <>
Wed, 3 Nov 1999 08:44:29 +0000 (08:44 +0000)
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.

processmail

index 6d35c6c7a361d82fc144d518795aa7bf9c4b1f89..eedfb033949d4504f06f8de4b2ce9680260c37f3 100755 (executable)
@@ -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++;