Check for long tags not associated with items after TAG_TOO_LONG sync error

This commit is contained in:
Dan Stillman 2010-09-06 18:36:34 +00:00
parent 6ba92efdbb
commit 330f8697f8

View file

@ -1875,7 +1875,7 @@ Zotero.Sync.Server = new function () {
var tag = tag[0].firstChild.nodeValue;
setTimeout(function () {
var callback = function () {
var sql = "SELECT DISTINCT name FROM itemTags NATURAL JOIN tags WHERE LENGTH(name)>255 LIMIT 1";
var sql = "SELECT DISTINCT name FROM tags WHERE LENGTH(name)>255 LIMIT 1";
var tag = Zotero.DB.valueQuery(sql);
if (tag) {
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]