Commit fc11e1a8 authored by Frédéric Buclin's avatar Frédéric Buclin

Fix bustage due to bug 793963. Some very old bugs may have no comments

parent 77beed22
......@@ -3416,7 +3416,8 @@ sub comments {
$comment->{count} = $count++;
$comment->{bug} = $self;
}
Bugzilla::Comment->preload($self->{'comments'});
# Some bugs may have no comments when upgrading old installations.
Bugzilla::Comment->preload($self->{'comments'}) if $count;
}
my @comments = @{ $self->{'comments'} };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment