Commit 90bf2307 authored by ghendricks%novell.com's avatar ghendricks%novell.com

Bug 414712 – Hook post_bug.cgi for post creation processing

patch by ghendricks@novell.com r=mkanat a=mkanat
parent 6222da86
...@@ -36,6 +36,7 @@ use Bugzilla::Error; ...@@ -36,6 +36,7 @@ use Bugzilla::Error;
use Bugzilla::Bug; use Bugzilla::Bug;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::Field; use Bugzilla::Field;
use Bugzilla::Hook;
use Bugzilla::Product; use Bugzilla::Product;
use Bugzilla::Component; use Bugzilla::Component;
use Bugzilla::Keyword; use Bugzilla::Keyword;
...@@ -244,6 +245,8 @@ $vars->{'mailrecipients'} = {'changer' => $user->login}; ...@@ -244,6 +245,8 @@ $vars->{'mailrecipients'} = {'changer' => $user->login};
$vars->{'id'} = $id; $vars->{'id'} = $id;
$vars->{'bug'} = $bug; $vars->{'bug'} = $bug;
Bugzilla::Hook::process("post_bug-after_creation", { vars => $vars });
ThrowCodeError("bug_error", { bug => $bug }) if $bug->error; ThrowCodeError("bug_error", { bug => $bug }) if $bug->error;
$vars->{'sentmail'} = []; $vars->{'sentmail'} = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment