From 8a0e81d6f6b01844c1c5bbd79d3288a23e404ab2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 9 Apr 2020 02:17:37 -0400 Subject: [PATCH] Properly require integrity check on nested collection detection When expanding to a collection reveals an infinite loop Bug in 06798097350c --- chrome/content/zotero/xpcom/collectionTreeView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index 813f1e11c6..211e05b9af 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -1043,7 +1043,7 @@ Zotero.CollectionTreeView.prototype.expandToCollection = Zotero.Promise.coroutin while (parentID = col.parentID) { // Detect infinite loop due to invalid nesting in DB if (seen.has(parentID)) { - yield Zotero.Schema.requireIntegrityCheck(); + yield Zotero.Schema.setIntegrityCheckRequired(true); Zotero.crash(); return; }