After having some problems with grouped filters in views I applied a core patch to fix it. This patch is working fine in general but if I save a view, which contains a geolocation field filter, I get an error:

The configuration property display.default.display_options.filters.field_geo_location_proximity.value.min doesn't exist.

This error also occurs on configuration import of the view. This is the filter part:

      field_geo_location_proximity:
          id: field_geo_location_proximity
          table: node__field_geo_location_proximity
          field: field_geo_location_proximity
          relationship: none
          group_type: group
          admin_label: ''
          operator: '<='
          value:
            min: ''
            max: ''
            value: '35'
            lat: '52.520015'
            lng: '13.404954'
            units: km
          group: 1
          exposed: true
          expose:
            operator_id: ''
            label: 'Distance (in kilometers)'
            description: 'Lat:52.5234146 Long:13.3702304 '
            use_operator: false
            operator: ''
            identifier: POI
            required: false
            remember: false
            multiple: false
            remember_roles:
              anonymous: anonymous
              authenticated: authenticated
              admin: '0'
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          expose_units: 0
          plugin_id: geolocation_filter_proximity

I'm only able to import the view configuration successfully, if I remove display.default.display_options.filters.field_geo_location_proximity.value from the configuration file.

If I only set display.default.display_options.filters.field_geo_location_proximity.value.max or some different value property I also get the appropriate error:

The configuration property display.default.display_options.filters.field_geo_location_proximity.value.max doesn't exist.

Experts said that this is a geolocation issue and gave some tipps to solve it.

Steps to reproduce:

  1. Install current version of geolocation (dev or latest stable)
  2. Apply patch grouped_filters-2369119-73.patch
  3. Add proximity filter with default values to an existing view and try to save it

The related grouped filter patch will be included in upcoming releases for 8.1 and 8.2, so it will become an major issue sooner or later.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pminf created an issue. See original summary.

Lendude’s picture

The related grouped filter patch will be included in upcoming releases

Well it will be if it ever gets reviewed and commited :-)

ChristianAdamski’s picture

Status: Active » Postponed

Thanks for the warning! I don't understand what I am to do right now though. Please reopen when this gets an active issue.

jaapjan’s picture

This can be reproduced with the 8.1.8 Core and with grouped_filters-2369119-73.patch applied.

The attached patch should solve the problem. It is basically the same type of mapping as defined in views.filter.geolocation_filter_boundary. Except I've added the options from NumericFilter and ProximityFilter in views.filter.geolocation_filter_proximity.

jaapjan’s picture

Also attached a patch against the latest stable 8.x-1.7 version:
geolocation-8.x-1.7-grouped-views-filters-2778227-5.patch

  • jaapjan authored 9831711 on 8.x-1.x
    Issue #2778227 by jaapjan: Core patch for views grouped filters results...
ChristianAdamski’s picture

Status: Needs review » Fixed

Minimally altered the labels. Pushed. Thank you.

I assume the schema should slowly be complete by now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.