]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2005-08-22 14:28:45 by ajt]
authorajt <>
Mon, 22 Aug 2005 21:28:45 +0000 (13:28 -0800)
committerajt <>
Mon, 22 Aug 2005 21:28:45 +0000 (13:28 -0800)
add support for displaying blocking infromation to bugreport.cgi

cgi/bugreport.cgi

index 5955d4990ba9d532bf63b4cfbeaa2ad9217561e4..1ba65466eb8ab19bde4ecc879a208973b2ee6ea0 100755 (executable)
@@ -274,6 +274,26 @@ if (@{$status{fixed_versions}}) {
     push @descstates, "<strong>Forwarded</strong> to ".maybelink($status{forwarded});
 }
 
+
+my @blockedby= split(/ /, $status{blockedby});
+if (@blockedby && $status{"pending"} ne 'fixed' && ! length($status{done})) {
+    for my $b (@blockedby) {
+        my %s = %{getbugstatus($b)};
+        next if $s{"pending"} eq 'fixed' || length $s{done};
+        push @descstates, "Fix blocked by <a href=\"" . bugurl($b) . "\">#$b</a>: ".htmlsanit($s{subject});
+    }
+}
+
+my @blocks= split(/ /, $status{blocks});
+if (@blocks && $status{"pending"} ne 'fixed' && ! length($status{done})) {
+    for my $b (@blocks) {
+        my %s = %{getbugstatus($b)};
+        next if $s{"pending"} eq 'fixed' || length $s{done};
+        push @descstates, "Blocking fix for <a href=\"" . bugurl($b) . "\">#$b</a>: ".htmlsanit($s{subject});
+    }
+}
+
+
 $indexentry .= join(";\n<br>", @descstates) . ";\n<br>" if @descstates;
 $indexentry .= "</h3>\n";