Skip to content

Commit

Permalink
Fix "item._changed.creators is undefined" error at startup
Browse files Browse the repository at this point in the history
This could occur if creator indexes needed to be corrected for an item.
  • Loading branch information
dstillman committed Oct 23, 2017
1 parent e35b035 commit 1a779bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chrome/content/zotero/xpcom/data/items.js
Expand Up @@ -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++;
Expand Down

0 comments on commit 1a779bb

Please sign in to comment.