commit 22d460312c350123422c0a077d9a92060caf6c44
parent 27974791b0cf909315744b94dd16feaaaa3e1459
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 27 Jan 2017 14:14:33 -0500
Make ZFS file syncing always enabled for publications library for now
At least until we have a better interface for setting library-specific
sync settings
Previously, if My Library file syncing was disabled or set to WebDAV, My
Publications files wouldn't be uploaded.
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage/storageLocal.js b/chrome/content/zotero/xpcom/storage/storageLocal.js
@@ -16,9 +16,13 @@ Zotero.Sync.Storage.Local = {
var libraryType = Zotero.Libraries.get(libraryID).libraryType;
switch (libraryType) {
case 'user':
- case 'publications':
return Zotero.Prefs.get("sync.storage.enabled");
+ // TEMP: Always sync publications files, at least until we have a better interface for
+ // setting library-specific settings
+ case 'publications':
+ return true;
+
case 'group':
return Zotero.Prefs.get("sync.storage.groups.enabled");
@@ -38,11 +42,12 @@ Zotero.Sync.Storage.Local = {
var libraryType = Zotero.Libraries.get(libraryID).libraryType;
switch (libraryType) {
case 'user':
- case 'publications':
- case 'feed':
return Zotero.Prefs.get("sync.storage.protocol") == 'webdav' ? 'webdav' : 'zfs';
+ case 'publications':
case 'group':
+ // TODO: Remove after making sure this is never called for feed libraries
+ case 'feed':
return 'zfs';
default: