From 222bc4f25d47af85168b407900f664e4135d3e18 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 14 May 2019 23:43:14 -0400 Subject: [PATCH] Fix update error cancelling document import Closes #1694 --- chrome/content/zotero/xpcom/integration.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 90add4f459..0bef2fc9df 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1636,9 +1636,10 @@ Zotero.Integration.Session.prototype.importDocument = async function() { Zotero.getString('general.moreInformation'), null, {}); if (result == 1) { throw new Zotero.Exception.UserCancelled("the document import"); - } else if (result == 2) { + } + if (result == 2) { Zotero.launchURL(importExportWikiURL); - return; + throw new Zotero.Exception.UserCancelled("the document import"); } Zotero.debug("Integration: Importing the document"); var timer = new Zotero.Integration.Timer();