]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-05-21 20:55:13 by cjwatson]
authorcjwatson <>
Thu, 22 May 2003 03:55:13 +0000 (19:55 -0800)
committercjwatson <>
Thu, 22 May 2003 03:55:13 +0000 (19:55 -0800)
repeatmerged=no now does the right thing if the first in the set of merged
bugs isn't in the current query (which can happen for by-submitter queries;
see #167146).

cgi/common.pl

index 4f51ca0218ef4cbf3f8c8a900c19e381de8722d2..c7662c4371f1f7ef451c579dd22d2b084f0b75d5 100644 (file)
@@ -348,11 +348,10 @@ sub htmlizebugs {
     } else {
        @bugs = sort {$a<=>$b} @bugs;
     }
+    my %seenmerged;
     foreach my $bug (@bugs) {
        my %status = %{getbugstatus($bug)};
         next unless %status;
-       my @merged = sort {$a<=>$b} ($bug, split(/ /, $status{mergedwith}));
-       next unless ($common_repeatmerged || $bug == $merged[0]);
        if (%common_include) {
            my $okay = 0;
            foreach my $t (split /\s+/, $status{tags}) {
@@ -384,6 +383,10 @@ sub htmlizebugs {
        next if grep { $_ eq $status{pending} } @common_pending_exclude;
        next if grep { $_ eq $status{severity} } @common_severity_exclude;
 
+       my @merged = sort {$a<=>$b} ($bug, split(/ /, $status{mergedwith}));
+       next unless ($common_repeatmerged || !$seenmerged{$merged[0]});
+       $seenmerged{$merged[0]} = 1;
+
        my $html = sprintf "<li><a href=\"%s\">#%d: %s</a>\n<br>",
            bugurl($bug), $bug, htmlsanit($status{subject});
        $html .= htmlindexentrystatus(\%status) . "\n";