From a38322ef546a7bfcb0ac93c2262b4db49e233a6e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 14 Sep 2009 02:15:20 +0000 Subject: [PATCH] Fix error dragging standalone attachment to group with filesEditable off --- chrome/content/zotero/xpcom/collectionTreeView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index fdb804144..0c436c11d 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -1057,6 +1057,9 @@ Zotero.CollectionTreeView.prototype.canDrop = function(row, orient, dragData) if (item.attachmentLinkMode == Zotero.Attachments.LINK_MODE_LINKED_FILE) { return false; } + if (!itemGroup.filesEditable) { + return false; + } skip = false; continue; }