summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.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/Hook.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/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index d29d4cf86..7ee033f86 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -656,6 +656,21 @@ to the user. (F<sanitycheck.cgi>'s C<Status>)
=back
+=head2 product_end_of_create
+
+Called right after a new product has been created, allowing additional
+changes to be made to the new product's attributes. This occurs inside of
+a database transaction, so if the hook throws an error all previous
+changes will be rolled back including the creation of the new product.
+
+Params:
+
+=over
+
+=item C<product> - The new L<Bugzilla::Product> object that was just created.
+
+=back
+
=head2 sanitycheck_repair
This hook allows for extra sanity check repairs to be made, for use by