summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Product.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-30 05:18:36 +0100
committermkanat%bugzilla.org <>2009-11-30 05:18:36 +0100
commit782d536feff3b2dce6c5f231167ed79059c161ea (patch)
tree2ddc7655457fda650b762cb37a04604184a541e2 /Bugzilla/Product.pm
parent65f8c60da54e296b57cdc665b6f503df128636c7 (diff)
downloadbugzilla-782d536feff3b2dce6c5f231167ed79059c161ea.tar.gz
bugzilla-782d536feff3b2dce6c5f231167ed79059c161ea.tar.xz
Bug 523411: Hook: product-end_of_create
Patch by Dave Lawrence <dkl@redhat.com> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r--Bugzilla/Product.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm
index d6eeab123..ac2bd4d72 100644
--- a/Bugzilla/Product.pm
+++ b/Bugzilla/Product.pm
@@ -30,6 +30,7 @@ use Bugzilla::Status;
use Bugzilla::Install::Requirements;
use Bugzilla::Mailer;
use Bugzilla::Series;
+use Bugzilla::Hook;
# Currently, we only implement enough of the Bugzilla::Field::Choice
# interface to control the visibility of other fields.
@@ -123,6 +124,8 @@ sub create {
$product->_create_bug_group() if Bugzilla->params->{'makeproductgroups'};
$product->_create_series() if $create_series;
+ Bugzilla::Hook::process('product_end_of_create', { product => $product });
+
$dbh->bz_commit_transaction();
return $product;
}