Fix "JavaScript component threw a number as an exception" error (which is actually "Cannot move collection into one of its own descendents!")
This commit is contained in:
parent
744610ca5b
commit
23dae26408
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ Zotero.Collection.prototype.save = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.id && this.hasDescendent('collection', newParent.id)) {
|
if (this.id && this.hasDescendent('collection', newParent.id)) {
|
||||||
throw ('Cannot move collection into one of its own descendents!', 2);
|
throw ('Cannot move collection into one of its own descendents!');
|
||||||
}
|
}
|
||||||
|
|
||||||
var parent = newParent.id;
|
var parent = newParent.id;
|
||||||
|
|
Loading…
Reference in a new issue