diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d974d8aa0..9446333d7 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -751,6 +751,9 @@ sub create { # sure we're inserting a good Bug ID. $bug->_sync_fulltext( new_bug => 1 ); + # BMO - some work should happen outside of the transaction block + Bugzilla::Hook::process('bug_after_create', { bug => $bug, timestamp => $timestamp }); + return $bug; } @@ -1081,6 +1084,10 @@ sub update { # relationship with this bug may have changed. delete $user->{_visible_bugs_cache}->{$self->id}; + # BMO - some work should happen outside of the transaction block + Bugzilla::Hook::process('bug_after_update', + { bug => $self, timestamp => $delta_ts, changes => $changes, old_bug => $old_bug }); + return $changes; } |