summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-20 05:12:21 +0200
committermkanat%bugzilla.org <>2008-08-20 05:12:21 +0200
commite9a2d105417e520a31dfc606d9c68e9dc7a9eab5 (patch)
tree3427a1f6e43492ce32727524bb10011a967ec513 /Bugzilla/Bug.pm
parentef1385c2174f17c63ca4b8eec861db76d7ef513d (diff)
downloadbugzilla-e9a2d105417e520a31dfc606d9c68e9dc7a9eab5.tar.gz
bugzilla-e9a2d105417e520a31dfc606d9c68e9dc7a9eab5.tar.xz
Bug 449306: Add a hook after a bug gets saved, and after flags get updated.
Patch By Jesse Clark <jjclark1982@gmail.com> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm6
1 files changed, 6 insertions, 0 deletions
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 = ?',