summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-18 08:15:23 +0100
committermkanat%bugzilla.org <>2009-11-18 08:15:23 +0100
commit03168362d5bec48c98f00446c74fe8edd3019164 (patch)
tree667e0fed9d23b39d04dad26cfb16c7d5097cb894 /Bugzilla
parent6af8aec0232e9a5bbe2fb371d0871cceb67911a7 (diff)
downloadbugzilla-03168362d5bec48c98f00446c74fe8edd3019164.tar.gz
bugzilla-03168362d5bec48c98f00446c74fe8edd3019164.tar.xz
Bug 524034: New hook: bug-end_of_create_validators
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm3
-rw-r--r--Bugzilla/Hook.pm15
2 files changed, 18 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 9af8b1e8c..c27f23823 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -613,6 +613,9 @@ sub run_create_validators {
delete $params->{lastdiffed};
delete $params->{bug_id};
+ Bugzilla::Hook::process('bug-end_of_create_validators',
+ { params => $params });
+
return $params;
}
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index b1feea138..b98fc95d7 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -280,6 +280,21 @@ values.
=back
+=head2 bug-end_of_create_validators
+
+This happens during L<Bugzilla::Bug/create>, after all parameters have
+been validated, but before anything has been inserted into the database.
+
+Params:
+
+=over
+
+=item C<params>
+
+A hashref. The validated parameters passed to C<create>.
+
+=back
+
=head2 bug-end_of_update
This happens at the end of L<Bugzilla::Bug/update>, after all other changes are