mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Fix Citation Explorer changes not saving when switching to citation dialog
This commit is contained in:
parent
588c4f5e5d
commit
bcfaadde4d
1 changed files with 8 additions and 6 deletions
|
|
@ -2481,15 +2481,17 @@ Zotero.Integration.Session.prototype.openCitationExplorer = async function () {
|
|||
await Zotero.Integration.displayDialog('chrome://zotero/content/integration/citationExplorer.xhtml', 'resizable', io);
|
||||
|
||||
if (io.openCitationDialog) {
|
||||
let citations = await this.cite(io.openCitationDialog);
|
||||
if (this.data.prefs.delayCitationUpdates) {
|
||||
for (let citation of citations) {
|
||||
await this.writeDelayedCitation(citation.field, citation);
|
||||
try {
|
||||
await this.cite(io.openCitationDialog);
|
||||
}
|
||||
catch (e) {
|
||||
if (!(e instanceof Zotero.Exception.Alert)) {
|
||||
Zotero.debug("An error occurred while citing from Citation Explorer. Document will be updated.");
|
||||
Zotero.logError(e);
|
||||
}
|
||||
} else {
|
||||
return this.updateDocument(FORCE_CITATIONS_FALSE, false, false);
|
||||
}
|
||||
}
|
||||
return this.updateDocument(FORCE_CITATIONS_FALSE, false, false);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue