Skip to content

Commit

Permalink
Fix push sync for group libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jan 23, 2017
1 parent cddc84f commit 41413b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero/xpcom/sync/syncStreamer.js
Expand Up @@ -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]
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion chrome/content/zotero/xpcom/uri.js
Expand Up @@ -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);
Expand Down

0 comments on commit 41413b1

Please sign in to comment.