diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 14:00:18 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 14:00:18 -0700 |
commit | a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a (patch) | |
tree | 4a0a763f1289cbcce3075505b5f012bb3527b7c2 /Bugzilla/Object.pm | |
parent | 07f947c99e162dc991f368cd5ff9065824c4ec86 (diff) | |
download | bugs-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.tar bugs-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.tar.gz bugs-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.tar.bz2 bugs-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.tar.xz bugs-a9a869f8e20ecfbeafeb8020ad4c1e86b60aa21a.zip |
Bug 556869: New Hook: object_before_delete
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Object.pm')
-rw-r--r-- | Bugzilla/Object.pm | 1 |
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 = ?", |