Fix error with citations not in library (since f3ceb7f66
)
This commit is contained in:
parent
fe88530120
commit
9e1533c32d
1 changed files with 7 additions and 2 deletions
|
@ -2480,8 +2480,13 @@ Zotero.Integration.Session.prototype.lookupItems = Zotero.Promise.coroutine(func
|
||||||
}
|
}
|
||||||
|
|
||||||
if(zoteroItem) {
|
if(zoteroItem) {
|
||||||
items.push(zoteroItem);
|
if (zoteroItem.cslItemID) {
|
||||||
citationItem.id = zoteroItem.cslItemID ? zoteroItem.cslItemID : zoteroItem.id;
|
citationItem.id = zoteroItem.cslItemID;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
citationItem.id = zoteroItem.id;
|
||||||
|
items.push(zoteroItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue