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/Flag.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla/Flag.pm') 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 { -- cgit v1.2.3-24-g4f1b