From 1a779bb7aa16e20a3abcd18c505cfecfa1f9c22a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 Oct 2017 03:20:35 -0400 Subject: [PATCH] Fix "item._changed.creators is undefined" error at startup This could occur if creator indexes needed to be corrected for an item. --- chrome/content/zotero/xpcom/data/items.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 77860139a..c71c8532f 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -333,6 +333,9 @@ Zotero.Items = function() { Zotero.debug("Fixing incorrect creator indexes for item " + item.libraryKey + " (" + numCreators + ", " + maxOrderIndex + ")", 2); var i = numCreators; + if (!item._changed.creators) { + item._changed.creators = {}; + } while (i <= maxOrderIndex) { item._changed.creators[i] = true; i++;