From 11f2810586fff92f3660d02e19f6e7f017925a03 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 10 Nov 2008 09:42:57 +0000 Subject: [PATCH] Fix "New Zotero.Item objects shouldn't be accessed after save" warning during sync --- chrome/content/zotero/xpcom/sync.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index 70d464a7f9..4e465ef3b4 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -1834,16 +1834,15 @@ Zotero.Sync.Server.Data = new function() { Zotero.debug('Saving merged ' + types); // Save parent items first if (type == 'item') { - for each(var obj in toSave) { - if (!obj.getSource()) { - obj.save(); + for (var i=0; i