From 30d40d6094d6dab6dfbbaa36238b6cafe16665f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 23 Apr 2020 11:40:16 +0300 Subject: [PATCH] Add some temporary logging for Mac users getting empty citation dialog https://forums.zotero.org/discussion/82697/empty-citation-dialog-after-clicking-add-edit-citation-on-an-existing-citation --- chrome/content/zotero/integration/quickFormat.js | 3 +++ chrome/content/zotero/xpcom/integration.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 9bd63ac156..debfa2fe30 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -52,6 +52,9 @@ var Zotero_QuickFormat = new function () { if(event.target === document) { initialized = true; io = window.arguments[0].wrappedJSObject; + + Zotero.debug(`Quick Format received citation:`); + Zotero.debug(JSON.stringify(io.citation.toJSON())); // Only hide chrome on Windows or Mac if(Zotero.isMac) { diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 5fc823b6a0..65129f9b9f 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1270,6 +1270,8 @@ Zotero.Integration.Fields.prototype.addEditCitation = async function (field) { citation, this._session.style.opt.sort_citations, fieldIndexPromise, citationsByItemIDPromise, previewFn ); + Zotero.debug(`Editing citation:`); + Zotero.debug(JSON.stringify(citation.toJSON())); if (Zotero.Prefs.get("integration.useClassicAddCitationDialog")) { Zotero.Integration.displayDialog('chrome://zotero/content/integration/addCitationDialog.xul',