www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 685294e908cf1c04fcedb831b38aa0667e3a71e7
parent ea60cb630ee2b8164b9fc7777e459248e6333774
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 16 Jul 2008 01:13:56 +0000

Fix tags being undefined when exported in 1.5


Diffstat:
Mchrome/content/zotero/xpcom/translate.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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; }