commit a76eaef5bf29b678cdbee070bfbd5930d5868b10 parent 79a89184d2009fea91d71df08e7b27c081acf477 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 13 Nov 2008 15:30:03 +0000 Fixes #1214, different translator behavior on the branch and the trunk Fix error when creator name field is left blank in two-field mode Diffstat:
| M | chrome/content/zotero/xpcom/data/creator.js | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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; }