From ab86aba0236ca96d58d75b839c003f093a12a297 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 25 Feb 2014 14:31:55 +0800 Subject: Bug 975943: add special support for a "deleted" comment tag --- Bugzilla/Bug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 6a5e0966e..295befa9c 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -3463,8 +3463,9 @@ sub comments { $comment->{count} = $count++; $comment->{bug} = $self; } + Bugzilla::Hook::process('bug_comments', { bug => $self, comments => $self->{'comments'} }); # Some bugs may have no comments when upgrading old installations. - Bugzilla::Comment->preload($self->{'comments'}) if $count; + Bugzilla::Comment->preload($self->{'comments'}) if @{ $self->{'comments'} }; } return unless defined wantarray; -- cgit v1.2.3-24-g4f1b