Fix error exporting items with child notes with tags

This commit is contained in:
Dan Stillman 2009-01-02 17:32:23 +00:00
parent 94f004002b
commit fa4df719e1

View file

@ -3395,7 +3395,10 @@ Zotero.Item.prototype.toArray = function (mode) {
var tags = this.getTags(); var tags = this.getTags();
if (tags) { if (tags) {
for (var i=0; i<tags.length; i++) { for (var i=0; i<tags.length; i++) {
arr.tags.push(tags[i].serialize()); var tag = tags[i].serialize();
tag.tag = tag.fields.name;
tag.type = tag.fields.type;
arr.tags.push(tag);
} }
} }