Fix error with citations not in library (since f3ceb7f66)

This commit is contained in:
Dan Stillman 2017-04-28 04:07:27 -04:00
parent fe88530120
commit 9e1533c32d

View file

@ -2480,8 +2480,13 @@ Zotero.Integration.Session.prototype.lookupItems = Zotero.Promise.coroutine(func
}
if(zoteroItem) {
items.push(zoteroItem);
citationItem.id = zoteroItem.cslItemID ? zoteroItem.cslItemID : zoteroItem.id;
if (zoteroItem.cslItemID) {
citationItem.id = zoteroItem.cslItemID;
}
else {
citationItem.id = zoteroItem.id;
items.push(zoteroItem);
}
}
}