Skip to content
Snippets Groups Projects
Commit e004fa04 authored by Italo Mairo's avatar Italo Mairo
Browse files

Issue #3280708: Geofield views schema issues

parent 30fbac6c
Branches
Tags
No related merge requests found
......@@ -66,12 +66,17 @@ views.filter_value.geofield_proximity_filter:
type: views.field.numeric
label: 'Geofield Proximity Filter'
mapping:
min:
type: integer
max:
type: integer
value:
type: integer
operator:
type: string
units:
type: string
source:
type: string
source_configuration:
type: mapping
mapping:
exposed_summary:
type: boolean
views.sort.geofield_proximity_sort:
type: views_sort
......
......@@ -62,13 +62,6 @@ class GeofieldProximityFilter extends NumericFilter {
// Override some default settings from the NumericFilter.
$options['operator'] = ['default' => '<='];
$options['value'] = [
'contains' => [
'min' => ['default' => ''],
'max' => ['default' => ''],
'value' => ['default' => ''],
],
];
$options['units'] = ['default' => 'GEOFIELD_KILOMETERS'];
......@@ -252,6 +245,7 @@ class GeofieldProximityFilter extends NumericFilter {
* {@inheritdoc}
*/
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$context = $this->pluginDefinition['plugin_type'];
......@@ -287,7 +281,6 @@ class GeofieldProximityFilter extends NumericFilter {
catch (\Exception $e) {
watchdog_exception('geofield', $e);
}
parent::buildOptionsForm($form, $form_state);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment