From d359b68062d86f7382f3a307bf7f2f617b62ae38 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 24 Feb 2012 12:03:18 -0500 Subject: [PATCH] Better recover from delete error when non-attachment is in FT tables --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 53d6d7de1b..64248dfdba 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4192,7 +4192,7 @@ Zotero.Item.prototype.erase = function() { catch (e) { // If deletion fails, try to correct a few things that have come up before Zotero.debug("Item deletion failed -- trying to fix", 2); - Zotero.DB.query('DELETE FROM fulltextItemWords WHERE itemID=?', this.id); + Zotero.Fulltext.clearItemWords(this.id); Zotero.DB.query('DELETE FROM itemTags WHERE itemID=?', this.id); // And then try again