From b117da88a3e4334fa2e09a4d1df7b1cbd9bd57d8 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 21 Jul 2012 18:28:36 -0400 Subject: [PATCH] Don't save unsynchable tags --- .../content/zotero/xpcom/translation/translate.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 0e6b8060b9..a45a5cfa21 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -580,6 +580,19 @@ Zotero.Translate.Sandbox = { if(setShortTitle) item.shortTitle = title; } + // refuse to save very long tags + if(item.tags) { + for(var i=0; i 255) { + translate._debug("WARNING: Skipping unsynchable tag "+JSON.stringify(tagString)); + item.tags.splice(i--, 1); + } + } + } + // call super Zotero.Translate.Sandbox.Base._itemDone(translate, item); }