From 4f023328eeab5dd137263a2488fb8ef307170f07 Mon Sep 17 00:00:00 2001 From: Edmund Yan Date: Sun, 21 Aug 2011 02:11:29 +0200 Subject: Bug 679516: Call Bugzilla::Object->remove_from_db when deleting an object r/a=LpSolit --- Bugzilla/Status.pm | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Bugzilla/Status.pm') diff --git a/Bugzilla/Status.pm b/Bugzilla/Status.pm index ffef600de..f3d6d808c 100644 --- a/Bugzilla/Status.pm +++ b/Bugzilla/Status.pm @@ -76,14 +76,7 @@ sub create { sub remove_from_db { my $self = shift; - my $dbh = Bugzilla->dbh; - my $id = $self->id; - $dbh->bz_start_transaction(); $self->SUPER::remove_from_db(); - $dbh->do('DELETE FROM status_workflow - WHERE old_status = ? OR new_status = ?', - undef, $id, $id); - $dbh->bz_commit_transaction(); delete Bugzilla->request_cache->{status_bug_state_open}; } -- cgit v1.2.3-24-g4f1b