From 7a2d7594d4cd39ca9ac44452f3799c9b844e4637 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 24 Oct 2008 20:11:34 +0000 Subject: [PATCH] Fixes #1194, RDF Export fails to export files in 1.5 --- chrome/content/zotero/xpcom/translate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index 8dedafc812..f2034ed22f 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -2043,8 +2043,7 @@ Zotero.Translate.prototype._exportGetAttachment = function(attachment) { } } else { // copy imported files from the Zotero directory - var directory = Zotero.getStorageDirectory(); - directory.append(attachmentArray.itemID); + var directory = file.parent; try { directory.copyTo(this._exportFileDirectory, attachmentArray.itemID); } catch(e) {