]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 95008: duplicates page no longer ignores verified INVALID/WONTFIX bugs
authorjustdave%syndicomm.com <>
Mon, 13 Aug 2001 07:19:37 +0000 (07:19 +0000)
committerjustdave%syndicomm.com <>
Mon, 13 Aug 2001 07:19:37 +0000 (07:19 +0000)
Patch by Gervase Markham <gervase.markham@univ.ox.ac.au>
r= justdave@syndicomm.com

duplicates.cgi

index cd0e87930a204daef5abc0af79370f55ed548d88..0da4f16247603f6976100089862837f8c82ee099 100755 (executable)
@@ -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>";