Fix unloaded citation items being serialized with string IDs
This commit is contained in:
parent
b25d99c241
commit
079cb258f4
|
@ -1474,6 +1474,8 @@ Zotero.Integration._oldCitationLocatorMap = {
|
||||||
*/
|
*/
|
||||||
Zotero.Integration.Session.prototype.addCitation = Zotero.Promise.coroutine(function* (index, noteIndex, citation) {
|
Zotero.Integration.Session.prototype.addCitation = Zotero.Promise.coroutine(function* (index, noteIndex, citation) {
|
||||||
var index = parseInt(index, 10);
|
var index = parseInt(index, 10);
|
||||||
|
|
||||||
|
yield citation.loadItemData();
|
||||||
|
|
||||||
citation.properties.added = true;
|
citation.properties.added = true;
|
||||||
citation.properties.zoteroIndex = index;
|
citation.properties.zoteroIndex = index;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user