commit d359b68062d86f7382f3a307bf7f2f617b62ae38
parent 78bfbf3e4fd051cd3eeab36c68205368213462cb
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 24 Feb 2012 12:03:18 -0500
Better recover from delete error when non-attachment is in FT tables
Diffstat:
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
@@ -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