From 05d089f0aa0be5bef7772f72fb230dc10371d78a Mon Sep 17 00:00:00 2001
From: ajt <>
Date: Mon, 22 Aug 2005 13:28:45 -0800
Subject: [PATCH] [project @ 2005-08-22 14:28:45 by ajt] add support for
displaying blocking infromation to bugreport.cgi
---
cgi/bugreport.cgi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi
index 5955d499..1ba65466 100755
--- a/cgi/bugreport.cgi
+++ b/cgi/bugreport.cgi
@@ -274,6 +274,26 @@ if (@{$status{fixed_versions}}) {
push @descstates, "Forwarded 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 #$b: ".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 #$b: ".htmlsanit($s{subject});
+ }
+}
+
+
$indexentry .= join(";\n
", @descstates) . ";\n
" if @descstates;
$indexentry .= "\n";
--
2.39.5