www

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

commit b679adad45f889cbcf561a0d1fa66470abffd0cc
parent 7a51f5e3cc040d929de73cbec2f21c3a87b6f526
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Fri,  5 May 2017 14:51:40 +0300

Potential bugfixery for #1218

Diffstat:
Mchrome/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 @@ -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,