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:
parent
2b6c975d1e
commit
8a0e81d6f6
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ Zotero.CollectionTreeView.prototype.expandToCollection = Zotero.Promise.coroutin
|
||||||
while (parentID = col.parentID) {
|
while (parentID = col.parentID) {
|
||||||
// Detect infinite loop due to invalid nesting in DB
|
// Detect infinite loop due to invalid nesting in DB
|
||||||
if (seen.has(parentID)) {
|
if (seen.has(parentID)) {
|
||||||
yield Zotero.Schema.requireIntegrityCheck();
|
yield Zotero.Schema.setIntegrityCheckRequired(true);
|
||||||
Zotero.crash();
|
Zotero.crash();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue