From 685294e908cf1c04fcedb831b38aa0667e3a71e7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 16 Jul 2008 01:13:56 +0000 Subject: [PATCH] Fix tags being undefined when exported in 1.5 --- chrome/content/zotero/xpcom/translate.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index fdeed015a..924933a91 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -2040,6 +2040,14 @@ Zotero.Translate.prototype._exportToArray = function(returnItem) { // preserve notes if(returnItemArray.note) returnItemArray.uniqueFields.note = returnItemArray.note; + // TODO: Change tag.tag references in scrapers.sql to tag.name + // once translators are 1.5-only + if (returnItemArray.tags) { + for (var i in returnItemArray.tags) { + returnItemArray.tags[i].tag = returnItemArray.tags[i].name; + } + } + return returnItemArray; }