commit 3c81067961924caeb36a763a376d90dba0a34859
parent 75411066414b7a87f66f023fc01388e58b741388
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 9 Oct 2014 14:19:22 -0400
Use DB libraryID for check in Zotero.Libraries.getType()
Before, 'user' wouldn't be returned if the real libraryID was given for
the personal library.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js
@@ -92,7 +92,7 @@ Zotero.Libraries = new function () {
this.getType = function (libraryID) {
- if (libraryID === 0) {
+ if (this.dbLibraryID(libraryID) === 0) {
return 'user';
}
if (!_libraryData[libraryID]) {