summaryrefslogtreecommitdiffstats
path: root/showdependencytree.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi17
1 files changed, 13 insertions, 4 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index a6a72eb3f..b23c3bf8b 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -112,8 +112,7 @@ sub DumpKids {
my $fgcolor = "#000000";
my $me;
if (! defined $depth) { $depth = 1; }
- if (exists $seen{$i}) { return; }
- $seen{$i} = 1;
+
if ($target eq "blocked") {
$me = "dependson";
} else {
@@ -151,7 +150,14 @@ sub DumpKids {
$html .= qq|<strike><span style="color: $fgcolor; background-color: $bgcolor;">
|;
}
- $short_desc = html_quote($short_desc);
+
+ if (exists $seen{$kid}) {
+ $short_desc = "&lt;<em>This bug appears elsewhere in this tree</em>&gt;";
+ }
+ else {
+ $short_desc = html_quote($short_desc);
+ }
+
SendSQL("select login_name from profiles where userid = $userid");
my ($owner) = (FetchSQLData());
if ((Param('usetargetmilestone')) && ($milestone)) {
@@ -171,7 +177,10 @@ sub DumpKids {
# Store the maximum depth so far
$realdepth = $realdepth < $depth ? $depth : $realdepth;
- DumpKids($kid, $target, $depth + 1);
+ if (!(exists $seen{$kid})) {
+ $seen{$kid} = 1;
+ DumpKids($kid, $target, $depth + 1);
+ }
}
if ($list_started) { $html .= "</ul>"; }
}