summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Umansky <umansky@forsys.ru>2016-02-16 20:25:16 +0100
committerGervase Markham <gerv@mozilla.org>2016-02-16 20:25:16 +0100
commit88a60383f6c804668079da938ab7c2913415dbfd (patch)
tree1be16554fa3d80693c63bc1068f730e7b21edf01
parentc2265a627a585e110cd4251a7cf9ca80ad65734f (diff)
downloadbugzilla-88a60383f6c804668079da938ab7c2913415dbfd.tar.gz
bugzilla-88a60383f6c804668079da938ab7c2913415dbfd.tar.xz
Bug 487573: Show RESOLVED button on Dependency Graph page. r=gerv
-rwxr-xr-xshowdependencygraph.cgi6
-rw-r--r--template/en/default/bug/dependency-graph.html.tmpl2
2 files changed, 6 insertions, 2 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi
index 27e063f62..6750cef79 100755
--- a/showdependencygraph.cgi
+++ b/showdependencygraph.cgi
@@ -148,8 +148,9 @@ if ($display eq 'web') {
# This is the default: a tree instead of a spider web.
else {
my @blocker_stack = @stack;
+ my $hide_resolved = $cgi->param('hide_resolved');
foreach my $id (@blocker_stack) {
- my $blocker_ids = Bugzilla::Bug::EmitDependList('blocked', 'dependson', $id);
+ my $blocker_ids = Bugzilla::Bug::EmitDependList('blocked', 'dependson', $id, $hide_resolved);
foreach my $blocker_id (@$blocker_ids) {
push(@blocker_stack, $blocker_id) unless $seen{$blocker_id};
AddLink($id, $blocker_id, $fh);
@@ -157,7 +158,7 @@ else {
}
my @dependent_stack = @stack;
foreach my $id (@dependent_stack) {
- my $dep_bug_ids = Bugzilla::Bug::EmitDependList('dependson', 'blocked', $id);
+ my $dep_bug_ids = Bugzilla::Bug::EmitDependList('dependson', 'blocked', $id, $hide_resolved);
foreach my $dep_bug_id (@$dep_bug_ids) {
push(@dependent_stack, $dep_bug_id) unless $seen{$dep_bug_id};
AddLink($dep_bug_id, $id, $fh);
@@ -325,6 +326,7 @@ $vars->{'multiple_bugs'} = ($cgi->param('id') =~ /[ ,]/);
$vars->{'display'} = $display;
$vars->{'rankdir'} = $rankdir;
$vars->{'showsummary'} = $cgi->param('showsummary');
+$vars->{'hide_resolved'} = $cgi->param('hide_resolved');
# Generate and return the UI (HTML page) from the appropriate template.
print $cgi->header();
diff --git a/template/en/default/bug/dependency-graph.html.tmpl b/template/en/default/bug/dependency-graph.html.tmpl
index 69afa2ddf..355adb6b6 100644
--- a/template/en/default/bug/dependency-graph.html.tmpl
+++ b/template/en/default/bug/dependency-graph.html.tmpl
@@ -56,6 +56,8 @@
<td>
<input type="checkbox" id="showsummary" name="showsummary" [% " checked" IF showsummary %]>
<label for="showsummary">Show the summaries of all displayed [% terms.bugs %]</label>
+ <input type="checkbox" id="hide_resolved" name="hide_resolved" [% " checked" IF hide_resolved %]>
+ <label for="hide_resolved">Hide resolved</label>
</td>
</tr>