summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Object.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-02 23:00:18 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-02 23:00:18 +0200
commita9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a (patch)
tree4a0a763f1289cbcce3075505b5f012bb3527b7c2 /Bugzilla/Object.pm
parent07f947c99e162dc991f368cd5ff9065824c4ec86 (diff)
downloadbugzilla-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.tar.gz
bugzilla-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.tar.xz
Bug 556869: New Hook: object_before_delete
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Object.pm')
-rw-r--r--Bugzilla/Object.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm
index e50be1fbf..2477244df 100644
--- a/Bugzilla/Object.pm
+++ b/Bugzilla/Object.pm
@@ -383,6 +383,7 @@ sub update {
sub remove_from_db {
my $self = shift;
+ Bugzilla::Hook::process('object_before_delete', { object => $self });
my $table = $self->DB_TABLE;
my $id_field = $self->ID_FIELD;
Bugzilla->dbh->do("DELETE FROM $table WHERE $id_field = ?",