From f7fe9ab64b382e9ab7625e61803828464f84d16b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 8 Nov 2013 03:09:34 -0500 Subject: [PATCH] Better fix for merging items in unsynced libraries Addresses a79872436 --- chrome/content/zotero/xpcom/data/libraries.js | 2 +- 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 index 367de7269..b623285fd 100644 --- a/chrome/content/zotero/xpcom/data/libraries.js +++ b/chrome/content/zotero/xpcom/data/libraries.js @@ -63,7 +63,7 @@ Zotero.Libraries = new function () { this.getType = function (libraryID) { - if (libraryID === 0 || libraryID == Zotero.libraryID || ("" + libraryID).indexOf('local/') == 0) { + if (libraryID === 0 || !Zotero.libraryID || libraryID == Zotero.libraryID) { return 'user'; } var sql = "SELECT libraryType FROM libraries WHERE libraryID=?";