]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 456642 - Mass bug edit form for buglist.cgi shows inactive bug statuses in drop...
authordkl%redhat.com <>
Wed, 24 Sep 2008 21:33:22 +0000 (21:33 +0000)
committerdkl%redhat.com <>
Wed, 24 Sep 2008 21:33:22 +0000 (21:33 +0000)
Patch by David Lawrence <dkl@redhat.com> - r/a=LpSolit

buglist.cgi

index d40cbaa7aeea543fe21ad668a4cfc495cba2057e..206d9651d9f363e1e8c33dc25d825ef6d799c8ef 100755 (executable)
@@ -1205,9 +1205,12 @@ if ($dotweak && scalar @bugs) {
     # It also accepts transitions where the bug status doesn't change.
     $bug_status_ids =
       $dbh->selectcol_arrayref(
-            'SELECT DISTINCT new_status
+            'SELECT DISTINCT sw1.new_status
                FROM status_workflow sw1
-              WHERE NOT EXISTS 
+         INNER JOIN bug_status
+                 ON bug_status.id = sw1.new_status
+              WHERE bug_status.isactive = 1
+                AND NOT EXISTS 
                    (SELECT * FROM status_workflow sw2
                      WHERE sw2.old_status != sw1.new_status 
                            AND '