www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 79a07cad9eee0d2276ed96376635a82eb3e81fa4
parent 7ede52355dce104f06a7be2c53de6aec5de7dc75
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  2 Feb 2017 18:42:17 -0500

Return array copy in ItemFields.getItemTypeFields()/getTypeFieldsFromBase()

Diffstat:
Mchrome/content/zotero/xpcom/data/itemFields.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js @@ -204,7 +204,7 @@ Zotero.ItemFields = new function() { throw new Error("Item type field data not found for itemTypeID " + itemTypeID); } - return _itemTypeFields[itemTypeID]; + return [..._itemTypeFields[itemTypeID]]; } @@ -317,7 +317,7 @@ Zotero.ItemFields = new function() { } return _typeFieldIDsByBase[baseFieldID] ? - _typeFieldIDsByBase[baseFieldID] : false; + [..._typeFieldIDsByBase[baseFieldID]] : false; }