Fixes #1253, Note export generates invalid RDF

In Item.toArray(), use toArray() for descendants as well
This commit is contained in:
Dan Stillman 2008-12-15 05:51:35 +00:00
parent 6da81257f6
commit b5f3448304

View File

@ -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());
}
}