Fix showdependencytree.cgi

master
Vitaliy Filippov 2014-05-28 14:41:38 +04:00
parent bd4d362b11
commit 8eafac0b57
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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'