From b5f3448304a3db9ccb17fce43d67fad740cd0f2b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 15 Dec 2008 05:51:35 +0000 Subject: [PATCH] Fixes #1253, Note export generates invalid RDF In Item.toArray(), use toArray() for descendants as well --- chrome/content/zotero/xpcom/data/item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index d85bd7229..83dc44f8a 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3343,14 +3343,14 @@ Zotero.Item.prototype.toArray = function (mode) { var notes = this.getNotes(); for (var i in notes) { var note = Zotero.Items.get(notes[i]); - arr.notes.push(note.serialize()); + arr.notes.push(note.toArray()); } arr.attachments = []; var attachments = this.getAttachments(); for (var i in attachments) { var attachment = Zotero.Items.get(attachments[i]); - arr.attachments.push(attachment.serialize()); + arr.attachments.push(attachment.toArray()); } }