summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Flag.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/Flag.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/Flag.pm')
-rw-r--r--Bugzilla/Flag.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 6266b0c0c..73266ce9f 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -54,6 +54,7 @@ whose names start with _ or a re specifically noted as being private.
=cut
use Bugzilla::FlagType;
+use Bugzilla::Hook;
use Bugzilla::User;
use Bugzilla::Util;
use Bugzilla::Error;
@@ -612,6 +613,12 @@ sub process {
my @new_summaries = $class->snapshot($bug_id, $attach_id);
update_activity($bug_id, $attach_id, $timestamp, \@old_summaries, \@new_summaries);
+
+ Bugzilla::Hook::process('flag-end_of_update', { bug => $bug,
+ timestamp => $timestamp,
+ old_flags => \@old_summaries,
+ new_flags => \@new_summaries,
+ });
}
sub update_activity {