From 571dfc551ce1db72dcf8cbcb99101c50b44d5dc4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 4 Nov 2013 05:23:03 -0500 Subject: [PATCH] Fix colored tags in group libraries Pressing the number keys was pulling in colored tags from "My Library". --- chrome/content/zotero/xpcom/itemTreeView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index ef35b0383..e9f54e558 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -189,7 +189,7 @@ Zotero.ItemTreeView.prototype._setTreeGenerator = function(treebox) Q.fcall(function () { if (coloredTagsRE.test(key)) { - let libraryID = self._itemGroup.libraryID; + let libraryID = self._itemGroup.ref.libraryID; libraryID = libraryID ? parseInt(libraryID) : 0; let position = parseInt(key) - 1; return Zotero.Tags.getColorByPosition(libraryID, position)