www

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

commit 582799e42886565014422ffdd7e5b97bcdf5150a
parent d476626c74f46693376eb205a13ae25c1e3cf648
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu,  4 Jun 2015 20:22:54 -0400

Fix Zotero.Attachments.importSnapshotFromFile

Diffstat:
Mchrome/content/zotero/xpcom/attachments.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js @@ -187,6 +187,7 @@ Zotero.Attachments = new function(){ // translate.js, which sets the metadata fields itself itemID = yield attachmentItem.save(); + var storageDir = Zotero.getStorageDirectory(); destDir = this.getStorageDirectory(attachmentItem); yield _moveOrphanedDirectory(destDir); file.parent.copyTo(storageDir, destDir.leafName);