From: Tiago Mello Date: Wed, 7 Apr 2010 18:01:49 +0000 (+0200) Subject: Bug 557324: object_before_delete does not work when object is Bugzilla::Classification X-Git-Tag: bugzilla-3.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18cae08a902ba9fb098332fe00146cc4cbe0fe7f;p=thirdparty%2Fbugzilla.git Bug 557324: object_before_delete does not work when object is Bugzilla::Classification r/a=mkanat --- diff --git a/Bugzilla/Classification.pm b/Bugzilla/Classification.pm index a7f59b4bba..322b5cf990 100644 --- a/Bugzilla/Classification.pm +++ b/Bugzilla/Classification.pm @@ -70,7 +70,7 @@ sub remove_from_db { $dbh->do("UPDATE products SET classification_id = 1 WHERE classification_id = ?", undef, $self->id); - $dbh->do("DELETE FROM classifications WHERE id = ?", undef, $self->id); + $self->SUPER::remove_from_db(); $dbh->bz_commit_transaction();