From e9a17f74d8d28754b04d3820eaea6ba2861f5866 Mon Sep 17 00:00:00 2001 From: Edmund Yan Date: Tue, 16 Aug 2011 11:52:14 +0200 Subject: Bug 675366: Use Bugzilla::Object::remove_from_db() when deleting a component r/a=LpSolit --- Bugzilla/Component.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'Bugzilla/Component.pm') diff --git a/Bugzilla/Component.pm b/Bugzilla/Component.pm index dc3cc1b9e..215119715 100644 --- a/Bugzilla/Component.pm +++ b/Bugzilla/Component.pm @@ -168,14 +168,7 @@ sub remove_from_db { ThrowUserError('component_has_bugs', {nb => $self->bug_count}); } } - - $dbh->do('DELETE FROM flaginclusions WHERE component_id = ?', - undef, $self->id); - $dbh->do('DELETE FROM flagexclusions WHERE component_id = ?', - undef, $self->id); - $dbh->do('DELETE FROM component_cc WHERE component_id = ?', - undef, $self->id); - $dbh->do('DELETE FROM components WHERE id = ?', undef, $self->id); + $self->SUPER::remove_from_db(); $dbh->bz_commit_transaction(); } -- cgit v1.2.3-24-g4f1b