]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 414712 รข\80\93 Hook post_bug.cgi for post creation processing
authorghendricks%novell.com <>
Wed, 6 Feb 2008 00:56:23 +0000 (00:56 +0000)
committerghendricks%novell.com <>
Wed, 6 Feb 2008 00:56:23 +0000 (00:56 +0000)
patch by ghendricks@novell.com r=mkanat a=mkanat

post_bug.cgi

index 988a1dedf3692f6abf0a10beba194d5fca47ed4c..fbfdf27f7578d68b2a085f3801110a32655d141f 100755 (executable)
@@ -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'} = [];