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:
Dan Stillman 2008-11-13 15:30:03 +00:00
parent 79a89184d2
commit a76eaef5bf

View file

@ -77,7 +77,12 @@ Zotero.Creator.prototype._set = function (field, val) {
case 'firstName':
case 'lastName':
case 'shortName':
val = value = Zotero.Utilities.prototype.trim(val);
if (val) {
val = value = Zotero.Utilities.prototype.trim(val);
}
else {
val = value = '';
}
break;
}