Skip to content

Commit

Permalink
Revert 43af788 and successors
Browse files Browse the repository at this point in the history
* Patch rejected by upstream. Reverting to adopt upstream
  changes.
  • Loading branch information
fbennett committed Apr 8, 2019
1 parent 25ff7c6 commit d049496
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions chrome/content/zotero/xpcom/integration.js
Expand Up @@ -1221,14 +1221,6 @@ Zotero.Integration.Fields.prototype.addEditCitation = async function (field) {
var fields = await this.get();

var [citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] = this._session.getCiteprocLists();
if (citations.length === 0 && !this._session.citeprocInit) {
await this._session.init(true, false)
this._session.citeprocInit = true;
this._session.reload = !this._session.data.prefs.delayCitationUpdates;
await this.updateSession(FORCE_CITATIONS_REGENERATE)
await this.updateDocument(FORCE_CITATIONS_REGENERATE, true, false);
[citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] = this._session.getCiteprocLists();
}

for (var prevIdx = idx-1; prevIdx >= 0; prevIdx--) {
if (prevIdx in fieldToCitationIdxMapping) break;
Expand Down Expand Up @@ -1496,8 +1488,6 @@ Zotero.Integration.Session.prototype.setData = async function (data, resetStyle)
// We're changing the citeproc instance, so we'll have to reinsert all citations into the registry
this.reload = true;
this.styleID = data.style.styleID;
// To assure client/processor data reconcilitation in previewFn
this.citeprocInit = false;
} catch (e) {
Zotero.logError(e);
throw new Zotero.Exception.Alert("integration.error.invalidStyle");
Expand Down

0 comments on commit d049496

Please sign in to comment.