PHRAS-2805 #comment Port41 of Facet-case-sensibility

This commit is contained in:
Harrys Ravalomanana
2019-11-14 15:02:04 +04:00
parent e4516644c4
commit 5e4da5f28f
5 changed files with 9 additions and 5 deletions

View File

@@ -323,7 +323,7 @@ class ElasticsearchOptions
"aggregated (2 values: fired = 0 or 1)" => -1,
],
'output_formatter' => function($value) {
static $map = ['0'=>"No flash", '1'=>"Flash"];
static $map = ["false"=>"No flash", "true"=>"Flash", '0'=>"No flash", '1'=>"Flash"];
return array_key_exists($value, $map) ? $map[$value] : $value;
},
],