summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-06-26 09:28:57 +0200
committerByron Jones <glob@mozilla.com>2014-06-26 09:28:57 +0200
commit6844714f290259fe975f95caca7d8f012b4c93aa (patch)
tree0ae3bdb38e21bb6d51ca27248888b1f15d71e15c /Bugzilla/Bug.pm
parentb8bd592443e5c9f0b0a136a2959ce615dba7407a (diff)
downloadbugzilla-6844714f290259fe975f95caca7d8f012b4c93aa.tar.gz
bugzilla-6844714f290259fe975f95caca7d8f012b4c93aa.tar.xz
Bug 1029991: "bug_comments" hook should run after comment tags are pre-loaded
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 3 insertions, 1 deletions
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;