Set empty metadata fields to an empty string in Item.toArray() rather than FALSE -- this was breaking reports of certain items

This commit is contained in:
Dan Stillman 2007-04-28 16:28:12 +00:00
parent b2f78c11d8
commit a11f08b2ad

View File

@ -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()){