#6537 call the field formatter instead of the toString() function

This commit is contained in:
Marcel Hallmann 2016-10-08 20:47:39 +02:00
parent e67f6ebf5c
commit 7dc7fd5b57

View file

@ -35,7 +35,11 @@ module.directive('kbnRows', function ($compile, $rootScope, getAppState, Private
if (contents.type === 'bucket' && contents.aggConfig.field() && contents.aggConfig.field().filterable) {
$cell = createAggConfigResultCell(contents);
}
contents = contents.toString('html');
let formatter = contents.aggConfig.fieldFormatter('html');
contents = formatter(contents.value,
contents.aggConfig.params && contents.aggConfig.params.field && contents.aggConfig.params.field.type);
}
if (_.isObject(contents)) {