Fix unclosed transaction during tag add if matching user tag already exists
This commit is contained in:
parent
442d9d614f
commit
5b47bba464
|
@ -1694,6 +1694,7 @@ Zotero.Item.prototype.addTag = function(tag, type){
|
||||||
// If existing user and adding automatic, skip
|
// If existing user and adding automatic, skip
|
||||||
else if (type == 1 && existingTypes.indexOf(0) != -1) {
|
else if (type == 1 && existingTypes.indexOf(0) != -1) {
|
||||||
Zotero.debug('Identical user tag already exists -- skipping automatic tag add');
|
Zotero.debug('Identical user tag already exists -- skipping automatic tag add');
|
||||||
|
Zotero.DB.commitTransaction();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user