diff options
author | myk%mozilla.org <> | 2002-03-01 23:03:55 +0100 |
---|---|---|
committer | myk%mozilla.org <> | 2002-03-01 23:03:55 +0100 |
commit | 8bc3038dec030c99b24ec27823796294176d8a0d (patch) | |
tree | 9e0200aecb2dd42d6a230be22eb967b9112e6aa7 | |
parent | 840a878b8bac93072bbe8836f04a65902ed49a67 (diff) | |
download | bugzilla-8bc3038dec030c99b24ec27823796294176d8a0d.tar.gz bugzilla-8bc3038dec030c99b24ec27823796294176d8a0d.tar.xz |
Fix for bug 99209: Display links on dependency tree page for modifying dependent bugs.
Patch by Myk Melez <myk@mozilla.org>.
r=kiko,bbaetz
-rwxr-xr-x | showdependencytree.cgi | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 4baa34976..b19302295 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -221,9 +221,17 @@ sub makeTreeHTML { $html = "<h3>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 .= ' (<a href="buglist.cgi?bug_id=' . join(',', keys %printed) . - '">view as bug list</a>)'; + my $link = "buglist.cgi?bug_id=" . join(',', keys %printed); + $html .= qq~ (<a href="$link">view as bug list</a>~; + if (UserInGroup("editbugs") && (scalar keys %printed) > 1) { + $html .= qq~ | <a href="$link&tweak=1">change several</a>~; + } + $html .= ')'; } # Provide feedback for omitted bugs |