From 6844714f290259fe975f95caca7d8f012b4c93aa Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 26 Jun 2014 15:28:57 +0800 Subject: Bug 1029991: "bug_comments" hook should run after comment tags are pre-loaded --- Bugzilla/Bug.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3be324825..217253b02 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -3488,9 +3488,11 @@ 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 @{ $self->{'comments'} }; + # BMO - for comment deletion support + Bugzilla::Hook::process('bug_comments', + { bug => $self, comments => $self->{'comments'} }); } return unless defined wantarray; -- cgit v1.2.3-24-g4f1b