From 27effd99d37c47da4f1462c63cae3d8548624ca2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 7 Jun 2008 18:54:31 +0000 Subject: Bug 437369: Deleting a bug doesn't remove related data from the bugs_fulltext table - Patch by Ed Goose r/a=LpSolit --- Bugzilla/Bug.pm | 4 ++++ 1 file changed, 4 insertions(+) mode change 100755 => 100644 Bugzilla/Bug.pm (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm old mode 100755 new mode 100644 index 736afbcda..ec603e2b2 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -770,6 +770,7 @@ sub remove_from_db { # - bug_group_map # - bugs # - bugs_activity + # - bugs_fulltext # - cc # - dependencies # - duplicates @@ -811,6 +812,9 @@ sub remove_from_db { $dbh->bz_commit_transaction(); + # The bugs_fulltext table doesn't support transactions. + $dbh->do("DELETE FROM bugs_fulltext WHERE bug_id = ?", undef, $bug_id); + # Now this bug no longer exists $self->DESTROY; return $self; -- cgit v1.2.3-24-g4f1b