www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 948a4dda64e995398afee7e0796c03f0db332ff9
parent 97a045fe0f0611ebe4ad001b31d82fd02a2d6169
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Wed, 31 Jan 2018 14:13:32 +0200

Fix citation preview citeproc error. Closes #1430

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1160,8 +1160,8 @@ Zotero.Integration.Fields.prototype.addEditCitation = Zotero.Promise.coroutine(f yield citationsByItemIDPromise; let citations = this._session.getCiteprocLists(); - let citationsPre = citations.slice(0, fieldIndex); - let citationsPost = citations.slice(fieldIndex+1); + let citationsPre = citations.slice(0, idx); + let citationsPost = citations.slice(idx+1); try { return this._session.style.previewCitationCluster(citation, citationsPre, citationsPost, "rtf"); } catch(e) {