From 5a008cf861372559fb7e0ceb94c035b2dcd91739 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 27 Aug 2018 17:45:42 -0400 Subject: [PATCH] Don't save collections from Scaffold Fixes zotero/scaffold#60 --- chrome/content/zotero/xpcom/translation/translate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index aa245ad7eb..d1d50c38b0 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -1698,7 +1698,9 @@ Zotero.Translate.Base.prototype = { */ "_checkIfDone":function() { if(!this._savingItems && !this._savingAttachments.length && (!this._currentState || this._waitingForSave)) { - if(this.newCollections && this._itemSaver.saveCollections) { + if (this.newCollections + && this._libraryID !== false + && this._itemSaver.saveCollections) { var me = this; this._itemSaver.saveCollections(this.newCollections) .then(function (newCollections) {