Fix colored tags in group libraries

Pressing the number keys was pulling in colored tags from "My Library".
This commit is contained in:
Dan Stillman 2013-11-04 05:23:03 -05:00
parent afd14ae4b9
commit 571dfc551c

View File

@ -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)