diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index a5df127cd..19aef341b 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3142,8 +3142,7 @@ Zotero.Item.prototype.erase = function(deleteChildren) { break; default: try { - var file = Zotero.getStorageDirectory(); - file.append(this.id); + var file = Zotero.Attachments.getStorageDirectory(this.id); if (file.exists()) { file.remove(true); }