From 8c64d8b410992f801272e651556a56f9bd9665cf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 26 May 2015 17:20:42 -0400 Subject: [PATCH] Fixes #739, Item added to "My Publications" despite choosing cancel --- chrome/content/zotero/xpcom/collectionTreeView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index d3fa61aa8..a09790150 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -1844,6 +1844,9 @@ Zotero.CollectionTreeView.prototype.drop = Zotero.Promise.coroutine(function* (r let items = yield Zotero.Items.getAsync(ids); let io = yield this._treebox.treeBody.ownerDocument.defaultView.ZoteroPane .showPublicationsWizard(items); + if (!io) { + return; + } copyOptions.childNotes = io.includeNotes; copyOptions.childFileAttachments = io.includeFiles; copyOptions.childLinks = true;