From 0a5ec165fbc3b732b92c27fa1c535bc814224731 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 9 Jan 2012 13:22:59 -0500 Subject: [PATCH] Drop empty creators in ZU.itemToServerJSON() and fix debug comments --- chrome/content/zotero/xpcom/utilities.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 3216ee510d..809777abc3 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -1082,7 +1082,7 @@ Zotero.Utilities = { var typeID = Zotero.ItemTypes.getID(item.itemType); if(!typeID) { - Zotero.debug("Translate: Invalid itemType "+item.itemType+"; saving as webpage"); + Zotero.debug("itemToServerJSON: Invalid itemType "+item.itemType+"; using webpage"); item.itemType = "webpage"; typeID = Zotero.ItemTypes.getID(item.itemType); } @@ -1103,6 +1103,11 @@ Zotero.Utilities = { for(var j=0; j