www

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

commit 41413b1ab23f3e57210c500192bfc5831f1d298e
parent cddc84ffe33e6b03bdb805f4d45a6353a4ef32d3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 23 Jan 2017 06:45:50 -0500

Fix push sync for group libraries

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncStreamer.js | 4++--
Mchrome/content/zotero/xpcom/uri.js | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncStreamer.js b/chrome/content/zotero/xpcom/sync/syncStreamer.js @@ -121,11 +121,11 @@ Zotero.Sync.Streamer_Module.prototype = { if (library) { // Ignore if skipped library let skipped = Zotero.Sync.Data.Local.getSkippedLibraries(); - if (skipped.includes(library.id)) return; + if (skipped.includes(library.libraryID)) return; yield Zotero.Sync.Runner.sync({ background: true, - libraries: [library.id] + libraries: [library.libraryID] }); } } diff --git a/chrome/content/zotero/xpcom/uri.js b/chrome/content/zotero/xpcom/uri.js @@ -137,7 +137,7 @@ Zotero.URI = new function () { } return Zotero.Libraries.userLibrary; } - matches = event.data.topic.match(/^\/groups\/(\d+)/); + matches = path.match(/^\/groups\/(\d+)/); if (matches) { let groupID = matches[1]; return Zotero.Groups.get(groupID);