diff --git a/chrome/content/zotero/xpcom/data/creator.js b/chrome/content/zotero/xpcom/data/creator.js index a6d1311bd8..65e5d236ad 100644 --- a/chrome/content/zotero/xpcom/data/creator.js +++ b/chrome/content/zotero/xpcom/data/creator.js @@ -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; }