From e531493ba05e5f4ecf0308e494beddac368db8e6 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 6 Nov 2010 20:52:15 +0000 Subject: [PATCH] fix collection import/export --- .../content/zotero/xpcom/translation/item_local.js | 12 ++++++------ chrome/content/zotero/xpcom/translation/translate.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/item_local.js b/chrome/content/zotero/xpcom/translation/item_local.js index ef13cdfc06..240c66ad94 100644 --- a/chrome/content/zotero/xpcom/translation/item_local.js +++ b/chrome/content/zotero/xpcom/translation/item_local.js @@ -132,7 +132,7 @@ Zotero.Translate.ItemSaver.prototype = { var parentIDs = [null]; var topLevelCollection; - while(collectionsToProcess) { + while(collectionsToProcess.length) { var collection = collectionsToProcess.shift(); var parentID = parentIDs.shift(); @@ -143,8 +143,9 @@ Zotero.Translate.ItemSaver.prototype = { var toAdd = []; - for each(child in collection.children) { - if(child.type == "collection") { + for(var i=0; i