Fixed bug reports link

git-svn-id: svn://10.0.0.236/trunk@214486 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com
2006-10-31 22:41:27 +00:00
parent c84a7fc704
commit 5ff665c7ba
2 changed files with 2 additions and 2 deletions

View File

@@ -1030,7 +1030,7 @@ sub bugs {
foreach my $id (@{$ref}){
push @bugs, Bugzilla::Bug->new($id, Bugzilla->user->id);
}
$self->{'bugs'} = \@bugs;
$self->{'bugs'} = \@bugs if @bugs;
$self->{'bug_list'} = join(',', @$ref);
return $self->{'bugs'};
}

View File

@@ -922,7 +922,7 @@ sub bugs {
foreach my $id (@{$ref}){
push @bugs, Bugzilla::Bug->new($id, Bugzilla->user->id);
}
$self->{'bugs'} = \@bugs;
$self->{'bugs'} = \@bugs if @bugs;
$self->{'bug_list'} = join(',', @$ref);
return $self->{'bugs'};
}