From bddb5ed2430231cfd931da4736df0967173fba36 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 5 Apr 2018 05:38:49 -0400 Subject: [PATCH] Target selector: Fix moving translated items between certain libraries Moving a translated item from a non-filesEditable library to a filesEditable library would fail (because the endpoint handler was named "SaveItem" instead of "SaveItems"). Fixes zotero/zotero-connectors#235 --- chrome/content/zotero/xpcom/server_connector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index 90115afea..87a07ad54 100644 --- a/chrome/content/zotero/xpcom/server_connector.js +++ b/chrome/content/zotero/xpcom/server_connector.js @@ -561,9 +561,9 @@ Zotero.Server.Connector.SavePage.prototype = { * Returns: * 201 response code with item in body. */ -Zotero.Server.Connector.SaveItem = function() {}; -Zotero.Server.Endpoints["/connector/saveItems"] = Zotero.Server.Connector.SaveItem; -Zotero.Server.Connector.SaveItem.prototype = { +Zotero.Server.Connector.SaveItems = function() {}; +Zotero.Server.Endpoints["/connector/saveItems"] = Zotero.Server.Connector.SaveItems; +Zotero.Server.Connector.SaveItems.prototype = { supportedMethods: ["POST"], supportedDataTypes: ["application/json"], permitBookmarklet: true,