From 2f94234a36513a7b8e33464773f75526a607f32f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 22 Jan 2007 21:37:16 +0000 Subject: [PATCH] Fix error adding items from library to collection (introduced since b3) --- chrome/content/zotero/xpcom/itemTreeView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 7621f45d0..a53517ef6 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -129,8 +129,8 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids) var splitIDs = []; for each(var id in ids) { var split = id.split('-'); - // Not items not in this collection - if (split[0] != this._itemGroup.ref.getID()) { + // Skip if not collection or not an item in this collection + if (!this._itemGroup.isCollection() || split[0] != this._itemGroup.ref.getID()) { continue; } splitIDs.push(split[1]);