Multiple proximity filters in view aren't working. When I'd like to find something that is not further than 100km from A and not further than 100km from B - but I see single coordinates form and proximity fields separated only.

Views filters configuration
Exposed form

Its possible that issue takes place because geolocation_filter_proximity uses direct input for read 'lat' and 'lng', but not provided by the views exposed filter form (I don't see lat and lng elements in the form definition at all):

  public function acceptExposedInput($input) {
    parent::acceptExposedInput($input);

    if (
      array_key_exists('lat', $input)
      && $input['lat'] !== ''
      && array_key_exists('lng', $input)
      && $input['lng'] !== ''
    ) {
      $this->value['lat'] = (float) $input['lat'];
      $this->value['lng'] = (float) $input['lng'];
    }

Comments

dewalt created an issue. See original summary.

dewalt’s picture

Title: Multiple Proximity Filters not working » Multiple exposed Proximity Filters not working
jddh’s picture

StatusFileSize
new42.93 KB

Having the same issue -- also happens if using multiple options for a single exposed proximity filter.

christianadamski’s picture

Status: Active » Needs review
StatusFileSize
new3.82 KB

  • ChristianAdamski authored 9573a13 on 8.x-3.x
    Issue #3171627 by ChristianAdamski: Multiple exposed Proximity Filters...
christianadamski’s picture

Status: Needs review » Fixed

Go forth and test. Works fine locally. Hopefully doesn't break anything

Status: Fixed » Closed (fixed)

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