From 8a93250ca13efdfd58a601afa0b21a384f54ddd4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 24 May 2015 04:56:19 -0400 Subject: [PATCH] Fix "comment.split is not a function" in item box --- chrome/content/zotero/bindings/itembox.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 3b71860e4..0e39fa9dd 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1562,7 +1562,11 @@ } } - Zotero.debug(comment); + // No result selected + if (!comment) { + return; + } + var [creatorID, numFields] = comment.split('-'); // If result uses two fields, save both