diff options
author | justdave%syndicomm.com <> | 2001-08-13 09:19:37 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-08-13 09:19:37 +0200 |
commit | 9d47ee0878f9cad6f23ae7cd631ce62b3843dc73 (patch) | |
tree | a5b2b7368a677ced0782b1517b20151df150e7cd /duplicates.cgi | |
parent | fdc334e8b5fe37b61036ee1a766751e6013779ba (diff) | |
download | bugzilla-9d47ee0878f9cad6f23ae7cd631ce62b3843dc73.tar.gz bugzilla-9d47ee0878f9cad6f23ae7cd631ce62b3843dc73.tar.xz |
Fix for bug 95008: duplicates page no longer ignores verified INVALID/WONTFIX bugs
Patch by Gervase Markham <gervase.markham@univ.ox.ac.au>
r= justdave@syndicomm.com
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-x | duplicates.cgi | 14 |
1 files changed, 9 insertions, 5 deletions
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 "<tr>"; print '<td><center>'; - if ( ($bug_status eq "RESOLVED") ) { + if ( ($bug_status eq "RESOLVED") || ($bug_status eq "VERIFIED") ) { print "<strike>"; } print "<A HREF=\"show_bug.cgi?id=" . $id . "\">"; print $id . "</A>"; - if ( ($bug_status eq "RESOLVED") ) { + if ( ($bug_status eq "RESOLVED") || ($bug_status eq "VERIFIED") ) { print "</strike>"; } print "</center></td>"; |