From 4eec421fe46de521cf241b9ac031a773451a1b6a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 16 Apr 2019 05:33:31 -0400 Subject: [PATCH] Don't return cached internal array for child notes --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 64a607ad3d..4c96fe2b17 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2041,7 +2041,7 @@ Zotero.Item.prototype.getNotes = function(includeTrashed) { + 'With' + (includeTrashed ? '' : 'out') + 'Trashed'; if (this._notes[cacheKey]) { - return this._notes[cacheKey]; + return [...this._notes[cacheKey]]; } var rows = this._notes.rows.concat();