Fixes #739, Item added to "My Publications" despite choosing cancel

This commit is contained in:
Dan Stillman 2015-05-26 17:20:42 -04:00
parent f71140da64
commit 8c64d8b410

View file

@ -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;