diff options
author | mkanat%bugzilla.org <> | 2009-11-18 07:15:23 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-18 07:15:23 +0000 |
commit | 03168362d5bec48c98f00446c74fe8edd3019164 (patch) | |
tree | 667e0fed9d23b39d04dad26cfb16c7d5097cb894 /Bugzilla | |
parent | 6af8aec0232e9a5bbe2fb371d0871cceb67911a7 (diff) | |
download | bugs-03168362d5bec48c98f00446c74fe8edd3019164.tar bugs-03168362d5bec48c98f00446c74fe8edd3019164.tar.gz bugs-03168362d5bec48c98f00446c74fe8edd3019164.tar.bz2 bugs-03168362d5bec48c98f00446c74fe8edd3019164.tar.xz bugs-03168362d5bec48c98f00446c74fe8edd3019164.zip |
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.pm | 3 | ||||
-rw-r--r-- | Bugzilla/Hook.pm | 15 |
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 |