78c3d5808b
The error is triggered upon initial interaction with a doc after Zotero restart or if new external citations (copied into the document) are peresnt and `session.updateSession()` is called without a subsequent `session.updateDocument()` call. `session.updateSession()` is called without a subsequent `session.updateDocument()` call every time the user cancels a citation insert. More specifically, `session.updateSession()` is called every time a citation dialog is invoked. It retrieves all citations and writes them into a local `session.citationsByIndex` object. Moreover, it marks each citation that hasn't seen before in a `session.newIndices` object. `session.newIndices` is there to ensure that we load every new citation into citeproc upon document update. This object is built by marking any citation that does not appear in the previous invocation's list of citations as new. However, if the document is never updated (because the user cancels the insertion) then the new indices are not loaded into citeproc. This commit fixes that, by excluding citeproc unloaded items from the previous invocation's citation list. |
||
---|---|---|
.. | ||
components | ||
content | ||
resource | ||
tests | ||
chrome.manifest | ||
install.rdf | ||
runtests.sh |