diff options
author | Byron Jones <bjones@mozilla.com> | 2014-02-25 07:31:55 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2014-02-25 07:31:55 +0100 |
commit | ab86aba0236ca96d58d75b839c003f093a12a297 (patch) | |
tree | 5b672f901931cce0dc02c402f2bb5c08e20d27d4 /Bugzilla/Bug.pm | |
parent | 0e67941defa509229a33b3b20d2ff2660f8728cb (diff) | |
download | bugzilla-ab86aba0236ca96d58d75b839c003f093a12a297.tar.gz bugzilla-ab86aba0236ca96d58d75b839c003f093a12a297.tar.xz |
Bug 975943: add special support for a "deleted" comment tag
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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; |