Commit 44411848 authored by StryKaizer's avatar StryKaizer Committed by borisson_

Issue #2727687 by borisson_, StryKaizer: Facet field selection needs context...

Issue #2727687 by borisson_, StryKaizer: Facet field selection needs context for multiple fields with the same name
parent 4610384e
......@@ -12,6 +12,7 @@
$('.facet-source-field-wrapper select').change(function () {
var default_name = $(this).find('option:selected').text();
default_name = default_name.replace(/(\s\((?!.*\().*\))/g, '');
$('#edit-name').val(default_name);
setTimeout(function () { $('#edit-name').trigger('change'); }, 100);
......
......@@ -82,7 +82,7 @@ abstract class SearchApiBaseFacetSource extends FacetSourcePluginBase {
$indexed_fields = [];
$fields = $this->index->getFields();
foreach ($fields as $field) {
$indexed_fields[$field->getFieldIdentifier()] = $field->getLabel();
$indexed_fields[$field->getFieldIdentifier()] = $field->getLabel() . ' ('. $field->getPropertyPath() . ')';
}
return $indexed_fields;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment