Commit e9a17f74 authored by Edmund Yan's avatar Edmund Yan Committed by Frédéric Buclin

Bug 675366: Use Bugzilla::Object::remove_from_db() when deleting a component

r/a=LpSolit
parent dc8850c0
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment