summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Component.pm9
1 files changed, 1 insertions, 8 deletions
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();
}