summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorghendricks%novell.com <>2008-02-06 01:56:23 +0100
committerghendricks%novell.com <>2008-02-06 01:56:23 +0100
commit90bf2307e3f5f19171e5f60bfe34d7c90ad1bf10 (patch)
tree4d28e0e4f39e691a281791579433cccf1b2a5e0a /post_bug.cgi
parent6222da860ba00bab052c0012ef853a213bd48910 (diff)
downloadbugzilla-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-xpost_bug.cgi3
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'} = [];