From de4ce577684239a207cd31aa918a05d1d2fb36d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 8 Feb 2019 13:03:13 +0200 Subject: [PATCH] Fix wrong httpIntegrationClient #convert call signature --- chrome/content/zotero/xpcom/connector/httpIntegrationClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/connector/httpIntegrationClient.js b/chrome/content/zotero/xpcom/connector/httpIntegrationClient.js index baa42f8d64..63f5f69835 100644 --- a/chrome/content/zotero/xpcom/connector/httpIntegrationClient.js +++ b/chrome/content/zotero/xpcom/connector/httpIntegrationClient.js @@ -140,7 +140,7 @@ Zotero.HTTPIntegrationClient.Document.prototype.getFields = async function(field }; Zotero.HTTPIntegrationClient.Document.prototype.convert = async function(fields, fieldType, noteTypes) { fields = fields.map((f) => f._id); - await Zotero.HTTPIntegrationClient.sendCommand("Field.convert", [this._documentID, fields, fieldType, noteTypes]); + await Zotero.HTTPIntegrationClient.sendCommand("Document.convert", [this._documentID, fields, fieldType, noteTypes]); }; Zotero.HTTPIntegrationClient.Document.prototype.complete = async function() { Zotero.HTTPIntegrationClient.inProgress = false;