From b679adad45f889cbcf561a0d1fa66470abffd0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 5 May 2017 14:51:40 +0300 Subject: [PATCH] Potential bugfixery for #1218 --- chrome/content/zotero/xpcom/integration.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 3fcea1885..630b8780f 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -3082,8 +3082,13 @@ Zotero.Integration.DocumentData = function(string) { Zotero.Integration.DocumentData.prototype.serialize = function() { // If we've retrieved data with version 4 (JSON), serialize back to JSON if (this.dataVersion == 4) { + // Filter style properties + let style = {}; + for (let prop of ['styleID', 'locale', 'hasBibliography', 'bibliographyStyleHasBeenSet']) { + style[prop] = this.style[prop]; + } return JSON.stringify({ - style: this.style, + style, prefs: this.prefs, sessionID: this.sessionID, zoteroVersion: Zotero.version,