From 2918e5d1a41c63bff7514d1372cfd2f13e2456c0 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 21 Feb 2024 09:11:18 +0200 Subject: [PATCH] Don't use sortable property when inserting a citation inside note editor Fixes #3723 --- chrome/content/zotero/xpcom/editorInstance.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index 2bd6e37ff4..9ffc3f4dce 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -1046,9 +1046,8 @@ class EditorInstance { /** * Citation editing functions and properties accessible to quickFormat.js and addCitationDialog.js */ - let CI = function (citation, sortable, fieldIndexPromise, citationsByItemIDPromise, previewFn) { + let CI = function (citation) { this.citation = citation; - this.sortable = sortable; this.filterLibraryIDs = filterLibraryIDs; this.disableClassicDialog = true; @@ -1244,11 +1243,7 @@ class EditorInstance { let citation = new Citation(); citation.citationItems = citationData.citationItems; citation.properties = citationData.properties; - let styleID = Zotero.Prefs.get('export.lastStyle'); - let locale = Zotero.Prefs.get('export.lastLocale'); - let csl = Zotero.Styles.get(styleID).getCiteProc(locale); - var io = new CI(citation, csl.opt.sort_citations); - + var io = new CI(citation); var allOptions = 'chrome,centerscreen'; // without this, Firefox gets raised with our windows under Compiz