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.


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'];
}
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3171627-multiple-exposed-proximity.patch | 3.82 KB | christianadamski |
| #3 | Stores_-_finagle__Content____Lordco.jpg | 42.93 KB | jddh |
| image2.png | 15.62 KB | dewalt | |
| image1.png | 18.33 KB | dewalt |
Comments
Comment #2
dewalt commentedComment #3
jddh commentedHaving the same issue -- also happens if using multiple options for a single exposed proximity filter.
Comment #4
christianadamski commentedComment #6
christianadamski commentedGo forth and test. Works fine locally. Hopefully doesn't break anything