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:
Dan Stillman 2010-08-24 18:57:00 +00:00
parent 744610ca5b
commit 23dae26408

View file

@ -404,7 +404,7 @@ Zotero.Collection.prototype.save = function () {
}
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;