Fixes #1214, different translator behavior on the branch and the trunk
Fix error when creator name field is left blank in two-field mode
This commit is contained in:
parent
79a89184d2
commit
a76eaef5bf
1 changed files with 6 additions and 1 deletions
|
@ -77,7 +77,12 @@ Zotero.Creator.prototype._set = function (field, val) {
|
||||||
case 'firstName':
|
case 'firstName':
|
||||||
case 'lastName':
|
case 'lastName':
|
||||||
case 'shortName':
|
case 'shortName':
|
||||||
|
if (val) {
|
||||||
val = value = Zotero.Utilities.prototype.trim(val);
|
val = value = Zotero.Utilities.prototype.trim(val);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
val = value = '';
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue