Skip to content

Commit

Permalink
elastic#6537 call the field formatter instead of the toString() function
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelhallmann53 committed Oct 8, 2016
1 parent e67f6eb commit 7dc7fd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/public/directives/rows.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7dc7fd5

Please sign in to comment.