Fix error refreshing missing citation without name part

https://forums.zotero.org/discussion/66789/
This commit is contained in:
Dan Stillman 2017-08-14 21:24:31 +02:00
parent a24f16eb85
commit 8797c7f680

View file

@ -1777,8 +1777,8 @@ Zotero.Utilities = {
var cslAuthor = nameMappings[i];
let creator = {};
if(cslAuthor.family || cslAuthor.given) {
if(cslAuthor.family) creator.lastName = cslAuthor.family;
if(cslAuthor.given) creator.firstName = cslAuthor.given;
creator.lastName = cslAuthor.family || '';
creator.firstName = cslAuthor.given || '';
} else if(cslAuthor.literal) {
creator.lastName = cslAuthor.literal;
creator.fieldMode = 1;