diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml index ae01fca88..f6bb00314 100644 --- a/chrome/content/zotero/bindings/attachmentbox.xml +++ b/chrome/content/zotero/bindings/attachmentbox.xml @@ -162,6 +162,10 @@ } var val = this.item.getField('title'); + if (typeof val != 'string') { + val += ""; + } + var firstSpace = val.indexOf(" "); // Crop long uninterrupted text if ((firstSpace == -1 && val.length > 29 ) || firstSpace > 29) {