From a11f08b2ad32da87cca3d9fbc411a97d08b920fb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 28 Apr 2007 16:28:12 +0000 Subject: [PATCH] Set empty metadata fields to an empty string in Item.toArray() rather than FALSE -- this was breaking reports of certain items --- chrome/content/zotero/xpcom/data_access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data_access.js b/chrome/content/zotero/xpcom/data_access.js index f9f7d6ea7..6066a59e8 100644 --- a/chrome/content/zotero/xpcom/data_access.js +++ b/chrome/content/zotero/xpcom/data_access.js @@ -2275,7 +2275,7 @@ Zotero.Item.prototype.toArray = function(){ // Item metadata for (var i in this._itemData){ - arr[Zotero.ItemFields.getName(i)] = this._itemData[i]; + arr[Zotero.ItemFields.getName(i)] = this._itemData[i] ? this._itemData[i] : ''; } if (!this.isNote() && !this.isAttachment()){