commit 8a93250ca13efdfd58a601afa0b21a384f54ddd4
parent 19b8db590fce1dc6d6082049d1276166e33c2ffc
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 24 May 2015 04:56:19 -0400
Fix "comment.split is not a function" in item box
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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