Fix a potential bug in integration plugin when field codes are corrupt
This commit is contained in:
parent
75aa17f169
commit
c12e5659ab
1 changed files with 1 additions and 1 deletions
|
@ -2931,7 +2931,7 @@ Zotero.Integration.CitationField = class extends Zotero.Integration.Field {
|
|||
Zotero.Integration.currentDoc.activate();
|
||||
var result = await Zotero.Integration.currentSession.displayAlert(msg, DIALOG_ICON_CAUTION, DIALOG_BUTTONS_YES_NO_CANCEL);
|
||||
if (result == 0) { // Cancel
|
||||
return new Zotero.Exception.UserCancelled("corrupt citation resolution");
|
||||
throw new Zotero.Exception.UserCancelled("corrupt citation resolution");
|
||||
} else if (result == 1) { // No
|
||||
return false;
|
||||
} else { // Yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue