From 9d47ee0878f9cad6f23ae7cd631ce62b3843dc73 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Mon, 13 Aug 2001 07:19:37 +0000 Subject: Fix for bug 95008: duplicates page no longer ignores verified INVALID/WONTFIX bugs Patch by Gervase Markham r= justdave@syndicomm.com --- duplicates.cgi | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'duplicates.cgi') diff --git a/duplicates.cgi b/duplicates.cgi index cd0e87930..0da4f1624 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -170,21 +170,25 @@ my $i = 0; foreach (@sortedcount) { my $id = $_; - SendSQL("SELECT component, bug_severity, op_sys, target_milestone, short_desc, groupset, bug_status" . + SendSQL("SELECT component, bug_severity, op_sys, target_milestone, short_desc, groupset, bug_status, resolution" . " FROM bugs WHERE bug_id = $id"); - my ($component, $severity, $op_sys, $milestone, $summary, $groupset, $bug_status) = FetchSQLData(); + my ($component, $severity, $op_sys, $milestone, $summary, $groupset, $bug_status, $resolution) = FetchSQLData();. next unless $groupset == 0; $summary = html_quote($summary); - unless ( ($bug_status eq "VERIFIED") | ($bug_status eq "CLOSED") ) { + # Show all bugs except those CLOSED _OR_ VERIFIED but not INVALID or WONTFIX. + # We want to see VERIFIED INVALID and WONTFIX because common "bugs" which aren't + # bugs end up in this state. + unless ( ($bug_status eq "CLOSED") || ( ($bug_status eq "VERIFIED") && + ! ( ($resolution eq "INVALID") || ($resolution eq "WONTFIX") ) ) ) { print ""; print '
'; - if ( ($bug_status eq "RESOLVED") ) { + if ( ($bug_status eq "RESOLVED") || ($bug_status eq "VERIFIED") ) { print ""; } print ""; print $id . ""; - if ( ($bug_status eq "RESOLVED") ) { + if ( ($bug_status eq "RESOLVED") || ($bug_status eq "VERIFIED") ) { print ""; } print "
"; -- cgit v1.2.3-24-g4f1b