Tweak to previous commit
This commit is contained in:
parent
28bbce4bf5
commit
81b429420b
1 changed files with 6 additions and 6 deletions
|
@ -3247,13 +3247,13 @@ Zotero.Sync.Server.Data = new function() {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (unsaved.length == originalLength) {
|
||||
var msg = "Incomplete collection hierarchy cannot be saved in Zotero.Sync.Server.Data._saveCollections()";
|
||||
var e = new Zotero.Error(msg, "MISSING_OBJECT");
|
||||
throw (e);
|
||||
}
|
||||
|
||||
if (unsaved.length) {
|
||||
if (unsaved.length == originalLength) {
|
||||
var msg = "Incomplete collection hierarchy cannot be saved in Zotero.Sync.Server.Data._saveCollections()";
|
||||
var e = new Zotero.Error(msg, "MISSING_OBJECT");
|
||||
throw (e);
|
||||
}
|
||||
|
||||
_saveCollections(unsaved);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue