www

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

commit 807c40859fda67b7fc43d7f3ff7a6de4680e7b6a
parent e19ee53f3d50dfeb8fc6adb9df5c8007b23139f1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 29 May 2015 21:55:22 -0400

Missed lines from 2154673dd

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -291,10 +291,9 @@ Zotero.Translate.ItemSaver.prototype = { delete attachment.path; } } else { - let myID; if (attachment.url) { attachment.linkMode = "imported_url"; - myID = yield Zotero.Attachments.importSnapshotFromFile({ + newItem = yield Zotero.Attachments.importSnapshotFromFile({ file: file, url: attachment.url, title: attachment.title, @@ -305,13 +304,12 @@ Zotero.Translate.ItemSaver.prototype = { } else { attachment.linkMode = "imported_file"; - myID = yield Zotero.Attachments.importFromFile({ + newItem = yield Zotero.Attachments.importFromFile({ file: file, parentItemID: parentID }); } done = true; - newItem = yield Zotero.Items.getAsync(myID); } }