mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fix unclosed transaction during tag add if matching user tag already exists
This commit is contained in:
parent
442d9d614f
commit
5b47bba464
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue