diff options
author | ghendricks%novell.com <> | 2008-02-06 01:56:23 +0100 |
---|---|---|
committer | ghendricks%novell.com <> | 2008-02-06 01:56:23 +0100 |
commit | 90bf2307e3f5f19171e5f60bfe34d7c90ad1bf10 (patch) | |
tree | 4d28e0e4f39e691a281791579433cccf1b2a5e0a /post_bug.cgi | |
parent | 6222da860ba00bab052c0012ef853a213bd48910 (diff) | |
download | bugzilla-90bf2307e3f5f19171e5f60bfe34d7c90ad1bf10.tar.gz bugzilla-90bf2307e3f5f19171e5f60bfe34d7c90ad1bf10.tar.xz |
Bug 414712 â Hook post_bug.cgi for post creation processing
patch by ghendricks@novell.com r=mkanat a=mkanat
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 988a1dedf..fbfdf27f7 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'} = []; |