commit 81b429420b1e13f0d7420689ff05f1619bd16779 parent 28bbce4bf50809f30ca4417add0f7f38893c01b9 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 11 Jul 2009 01:20:26 +0000 Tweak to previous commit Diffstat:
| M | chrome/content/zotero/xpcom/sync.js | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -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); } }