Include collection name in "Cannot move collection into one of its own descendents" message to help with manual fixing
This commit is contained in:
parent
72ffd78143
commit
56a31cbd72
|
@ -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!');
|
throw ('Cannot move collection "' + this.name + '" into one of its own descendents');
|
||||||
}
|
}
|
||||||
|
|
||||||
var parent = newParent.id;
|
var parent = newParent.id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user