From: dkl%redhat.com <> Date: Wed, 24 Sep 2008 21:33:22 +0000 (+0000) Subject: Bug 456642 - Mass bug edit form for buglist.cgi shows inactive bug statuses in drop... X-Git-Tag: bugzilla-3.2rc2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0a494ac3dba413373c3f8978fad93c4cc28e19f;p=thirdparty%2Fbugzilla.git Bug 456642 - Mass bug edit form for buglist.cgi shows inactive bug statuses in drop down Patch by David Lawrence - r/a=LpSolit --- diff --git a/buglist.cgi b/buglist.cgi index d40cbaa7ae..206d9651d9 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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 '