From a37f38a0b7cc8eecbcb629d8ce435c3f27206398 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 9 Jul 2019 12:58:34 +0200 Subject: [PATCH] not all array keys are arrays --- static/js/editDocumentsDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/editDocumentsDialog.js b/static/js/editDocumentsDialog.js index 4d6b345f1..620cc1530 100644 --- a/static/js/editDocumentsDialog.js +++ b/static/js/editDocumentsDialog.js @@ -97,7 +97,8 @@ pandora.ui.editDocumentsDialog = function() { }); if (isArray) { values = values.map(function(value) { - return (value || []).join(separator); + value = value || [] + return value.join ? value.join(separator) : value; }); } if (Ox.unique(values).length > 1) {