Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
88a60383
Commit
88a60383
authored
Feb 16, 2016
by
Stas Umansky
Committed by
Gervase Markham
Feb 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 487573: Show RESOLVED button on Dependency Graph page. r=gerv
parent
c2265a62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
showdependencygraph.cgi
showdependencygraph.cgi
+4
-2
dependency-graph.html.tmpl
template/en/default/bug/dependency-graph.html.tmpl
+2
-0
No files found.
showdependencygraph.cgi
View file @
88a60383
...
...
@@ -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
();
...
...
template/en/default/bug/dependency-graph.html.tmpl
View file @
88a60383
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment