commit f45b219792b369f971bbd7b706ec23a3d3eac3e9 parent 41e50ef66984ebbd6ac16f6b738b57c62144c7f6 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 21 Jun 2014 13:37:16 -0400 Fix inline collection editing when clicking to another collection https://forums.zotero.org/discussion/37739 Diffstat:
| M | chrome/content/zotero/xpcom/collectionTreeView.js | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -588,8 +588,9 @@ Zotero.CollectionTreeView.prototype.setCellText = function (row, col, val) { if (val === "") { return; } - this.itemGroup.ref.name = val; - this.itemGroup.ref.save(); + var itemGroup = this._getItemAtRow(row); + itemGroup.ref.name = val; + itemGroup.ref.save(); }