ZU.itemToServerJSON() should ignore empty tags

This commit is contained in:
Simon Kornblith 2012-04-01 14:56:13 -04:00
parent ad4ded95bb
commit 8b20586ccc

View file

@ -1200,6 +1200,8 @@ Zotero.Utilities = {
Zotero.debug("itemToServerJSON: Discarded invalid tag");
continue;
}
} else if(tag === "") {
continue;
}
newTags[j] = {"tag":tag.toString(), "type":1};
}