From: ghendricks%novell.com <> Date: Wed, 6 Feb 2008 00:56:23 +0000 (+0000) Subject: Bug 414712 – Hook post_bug.cgi for post creation processing X-Git-Tag: bugzilla-3.1.3~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90bf2307e3f5f19171e5f60bfe34d7c90ad1bf10;p=thirdparty%2Fbugzilla.git Bug 414712 – Hook post_bug.cgi for post creation processing patch by ghendricks@novell.com r=mkanat a=mkanat --- diff --git a/post_bug.cgi b/post_bug.cgi index 988a1dedf3..fbfdf27f75 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -36,6 +36,7 @@ use Bugzilla::Error; use Bugzilla::Bug; use Bugzilla::User; use Bugzilla::Field; +use Bugzilla::Hook; use Bugzilla::Product; use Bugzilla::Component; use Bugzilla::Keyword; @@ -244,6 +245,8 @@ $vars->{'mailrecipients'} = {'changer' => $user->login}; $vars->{'id'} = $id; $vars->{'bug'} = $bug; +Bugzilla::Hook::process("post_bug-after_creation", { vars => $vars }); + ThrowCodeError("bug_error", { bug => $bug }) if $bug->error; $vars->{'sentmail'} = [];