fix : tech facets did appear twice.

This commit is contained in:
Jean-Yves Gaulier
2020-02-03 20:46:53 +01:00
parent b1b35cc92b
commit 3b8d75d39d

View File

@@ -129,11 +129,11 @@ class ElasticsearchSettingsFormType extends AbstractType
$choices = array_key_exists('choices', $f) ? $f['choices'] : null; // a tech-field can publish it's own choices $choices = array_key_exists('choices', $f) ? $f['choices'] : null; // a tech-field can publish it's own choices
$help = null; $help = null;
$label = '#' . $k; $label = '#' . $k;
if(!array_key_exists('_'.$k, $aggs)) { if(!array_key_exists($k, $aggs)) {
$label = "/!\\ " . $label; $label = "/!\\ " . $label;
$help = "New field, please confirm setting."; $help = "New field, please confirm setting.";
} }
$addAgg('_'.$k, $label, $help, false, $choices); $addAgg($k, $label, $help, false, $choices);
} }
// add or replace all databoxes fields (nb: new db field - unknown in conf - will be a the end) // add or replace all databoxes fields (nb: new db field - unknown in conf - will be a the end)