diff options
author | Edmund Yan <edmundhyan@gmail.com> | 2011-08-16 11:52:14 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-16 11:52:14 +0200 |
commit | e9a17f74d8d28754b04d3820eaea6ba2861f5866 (patch) | |
tree | 5ecdbeca6aa2694412a2b1f0596772cf6677eaa9 /Bugzilla | |
parent | dc8850c0644e7f53cf4698eeef97b0312dbbbdf6 (diff) | |
download | bugzilla-e9a17f74d8d28754b04d3820eaea6ba2861f5866.tar.gz bugzilla-e9a17f74d8d28754b04d3820eaea6ba2861f5866.tar.xz |
Bug 675366: Use Bugzilla::Object::remove_from_db() when deleting a component
r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Component.pm | 9 |
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(); } |