diff options
author | myk%mozilla.org <> | 2001-11-08 11:43:55 +0100 |
---|---|---|
committer | myk%mozilla.org <> | 2001-11-08 11:43:55 +0100 |
commit | 8e63a96f66bd6326fb5446ae74e6d864fc22a3bf (patch) | |
tree | da5ef33b35170a85f53a08bbadba6b09e4cbcab5 /showdependencytree.cgi | |
parent | faefca3cf83c24365dd29cc874024d0cb82732f9 (diff) | |
download | bugzilla-8e63a96f66bd6326fb5446ae74e6d864fc22a3bf.tar.gz bugzilla-8e63a96f66bd6326fb5446ae74e6d864fc22a3bf.tar.xz |
Fix for bug 104652: Duplicate bugs in the dependency tree now get marked with the message "This bug appears elsewhere in this tree." so users know why the bug does not appear to have dependencies.
Patch by Gerv <gerv@mozilla.org>.
r=jake@acutex.net,myk@mozilla.org
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-x | showdependencytree.cgi | 17 |
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 = "<<em>This bug appears elsewhere in this tree</em>>"; + } + 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>"; } } |