www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a1cd958cd6032bf0d159e4940041a7cc49a621b3
parent f9c07bb8e07224e758b52b50245b57e36f8b9fdb
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  1 Sep 2008 03:59:55 +0000

Attachment directory wasn't removed when deleting attachment


Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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); }