Fix showdependencytree.cgi
parent
bd4d362b11
commit
8eafac0b57
|
@ -2894,7 +2894,7 @@ sub flags
|
|||
sub isopened
|
||||
{
|
||||
my $self = shift;
|
||||
return is_open_state($self->{bug_status}) ? 1 : 0;
|
||||
return $self->bug_status_obj->is_open;
|
||||
}
|
||||
|
||||
sub keywords
|
||||
|
|
|
@ -127,9 +127,9 @@ sub GenerateTree {
|
|||
# if it exists, if we haven't exceeded the maximum depth the user
|
||||
# wants the tree to go, and if the dependency isn't resolved
|
||||
# (if we're ignoring resolved dependencies).
|
||||
if (!$bugs->{$dep_id}->{'error'}
|
||||
if ($bugs->{$dep_id}
|
||||
&& Bugzilla->user->can_see_bug($dep_id)
|
||||
&& (!$maxdepth || $depth <= $maxdepth)
|
||||
&& (!$maxdepth || $depth <= $maxdepth)
|
||||
&& ($bugs->{$dep_id}->isopened || !$hide_resolved))
|
||||
{
|
||||
# Due to AUTOLOAD in Bug.pm, we cannot add 'dependencies'
|
||||
|
|
Loading…
Reference in New Issue