From e9a2d105417e520a31dfc606d9c68e9dc7a9eab5 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 20 Aug 2008 03:12:21 +0000 Subject: Bug 449306: Add a hook after a bug gets saved, and after flags get updated. Patch By Jesse Clark r=mkanat, a=mkanat --- Bugzilla/Bug.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 0119681f8..444858bd1 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -35,6 +35,7 @@ use Bugzilla::Constants; use Bugzilla::Field; use Bugzilla::Flag; use Bugzilla::FlagType; +use Bugzilla::Hook; use Bugzilla::Keyword; use Bugzilla::User; use Bugzilla::Util; @@ -770,6 +771,11 @@ sub update { $changes->{'dup_id'} = [$old_dup || undef, $cur_dup || undef]; } + Bugzilla::Hook::process('bug-end_of_update', { bug => $self, + timestamp => $delta_ts, + changes => $changes, + }); + # If any change occurred, refresh the timestamp of the bug. if (scalar(keys %$changes) || $self->{added_comments}) { $dbh->do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?', -- cgit v1.2.3-24-g4f1b