From fdd211a95888ce868e716f5c3f684c56120e3e43 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Tue, 10 Sep 2013 13:08:41 -0700 Subject: [PATCH] added an array specific branch to the stringify filter, also put it back in the table --- js/filters.js | 9 ++++++--- panels/table/module.html | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/js/filters.js b/js/filters.js index fb60c2486488c..490a4c7296d8b 100644 --- a/js/filters.js +++ b/js/filters.js @@ -27,9 +27,12 @@ angular.module('kibana.filters', []) } }; }).filter('stringify', function() { - return function(arr, start, end) { - if(!_.isUndefined(arr)) { - return arr.toString(); + return function(val, start, end) { + if(_.isArray(val)) { + return val.join(', '); + } + else if(!_.isUndefined(val)) { + return val.toString(); } }; diff --git a/panels/table/module.html b/panels/table/module.html index c872549f9cb8b..7f334e4f79049 100644 --- a/panels/table/module.html +++ b/panels/table/module.html @@ -58,7 +58,7 @@
Fields - + @@ -75,7 +75,7 @@
Fields - +