summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
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