]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 686133: Bugzilla crashes when deleting a bug
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 12 Sep 2011 16:50:48 +0000 (18:50 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 12 Sep 2011 16:50:48 +0000 (18:50 +0200)
r=timello a=LpSolit

Bugzilla/Bug.pm

index 8beecdcd2d5a12411aa412362b2fd5b1970072b7..e5b288f2503934c8e63ed79e6ab4543f04745898 100644 (file)
@@ -1130,9 +1130,7 @@ sub remove_from_db {
     # 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;
+    undef $self;
 }
 
 #####################################################################