From: myk%mozilla.org <> Date: Fri, 1 Mar 2002 22:03:55 +0000 (+0000) Subject: Fix for bug 99209: Display links on dependency tree page for modifying dependent... X-Git-Tag: bugzilla-2.16rc1~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bc3038dec030c99b24ec27823796294176d8a0d;p=thirdparty%2Fbugzilla.git Fix for bug 99209: Display links on dependency tree page for modifying dependent bugs. Patch by Myk Melez . r=kiko,bbaetz --- diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 4baa349769..b193022950 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -221,9 +221,17 @@ sub makeTreeHTML { $html = "

Bugs that bug $linked_id ".($target eq "blocked" ? "blocks" : "depends on"); + # If there are some bugs in this tree, add a link to view them + # as a bug list, and add another link to edit them on the "change + # several bugs" page if there is more than one and the user has + # "editbugs" privileges. if ((scalar keys %printed) > 0) { - $html .= ' (view as bug list)'; + my $link = "buglist.cgi?bug_id=" . join(',', keys %printed); + $html .= qq~ (view as bug list~; + if (UserInGroup("editbugs") && (scalar keys %printed) > 1) { + $html .= qq~ | change several~; + } + $html .= ')'; } # Provide feedback for omitted bugs