Fix unclosed transaction during tag add if matching user tag already exists

This commit is contained in:
Dan Stillman 2007-04-27 21:26:56 +00:00
parent 442d9d614f
commit 5b47bba464

View File

@ -1694,6 +1694,7 @@ Zotero.Item.prototype.addTag = function(tag, type){
// If existing user and adding automatic, skip
else if (type == 1 && existingTypes.indexOf(0) != -1) {
Zotero.debug('Identical user tag already exists -- skipping automatic tag add');
Zotero.DB.commitTransaction();
return false;
}
}