From 33c19715a83a80463ffdf693d490c0142ac845f9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 8 Jun 2015 04:27:45 -0400 Subject: [PATCH] Avoid error when dragging over header row --- chrome/content/zotero/xpcom/collectionTreeView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index 494813428..0391a894f 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -2209,7 +2209,8 @@ Zotero.CollectionTreeRow.prototype.isShare = function() // Special Zotero.CollectionTreeRow.prototype.isWithinGroup = function () { - return this.ref && Zotero.Libraries.getType(this.ref.libraryID) == 'group'; + return this.ref && !this.isHeader() + && Zotero.Libraries.getType(this.ref.libraryID) == 'group'; } Zotero.CollectionTreeRow.prototype.isWithinEditableGroup = function () {