summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-06-07 20:54:31 +0200
committerlpsolit%gmail.com <>2008-06-07 20:54:31 +0200
commit27effd99d37c47da4f1462c63cae3d8548624ca2 (patch)
tree7dd003f0239db18a5137bfa70b9b5c757167338d /Bugzilla
parent87cdd1c7afb9c11e2d2fdc246f79c3a0e42de0e8 (diff)
downloadbugzilla-27effd99d37c47da4f1462c63cae3d8548624ca2.tar.gz
bugzilla-27effd99d37c47da4f1462c63cae3d8548624ca2.tar.xz
Bug 437369: Deleting a bug doesn't remove related data from the bugs_fulltext table - Patch by Ed Goose <ed.goose@gmail.com> r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--[-rwxr-xr-x]Bugzilla/Bug.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 736afbcda..ec603e2b2 100755..100644
--- 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;