Fixes #1029, Error when a bibliography with customized entries references a non-existent item
This commit is contained in:
parent
01547b564e
commit
d8079dac9b
|
@ -1072,6 +1072,9 @@ Zotero.Integration.Session.prototype.loadDocumentData = function(json) {
|
|||
if(documentData.custom) {
|
||||
for(var itemID in documentData.custom) {
|
||||
var item = this.itemSet.getItemsByIds([itemID])[0];
|
||||
if (!item) {
|
||||
continue;
|
||||
}
|
||||
item.setProperty("bibliography-Integration", documentData.custom[itemID]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user