Better recover from delete error when non-attachment is in FT tables
This commit is contained in:
parent
78bfbf3e4f
commit
d359b68062
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue