Properly require integrity check on nested collection detection

When expanding to a collection reveals an infinite loop

Bug in 0679809735
This commit is contained in:
Dan Stillman 2020-04-09 02:17:37 -04:00
parent 2b6c975d1e
commit 8a0e81d6f6

View file

@ -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;
}