Problem/Motivation
I have a Geolocation view with a list view attached. The list view previously displayed proximity and was filtered by it. However, as of the update to 3.10 these proximity-related features are no longer working. They work fine in 3.9. The issues are related to the changes in Multiple exposed Proximity Filters not working - it works again if I undo them. Curiously this seems to fix both the filtering itself and the field, even though the field plugin isn't touched directly.
The issue happens when a view has a grouped proximity filter.
Steps to reproduce
I haven't properly replicated this from scratch but I'm attaching configuration for a view that is affected by the issue for reference.
Proposed resolution
We just need to tweak the geolocation_filter_proximity views filter plugin to address the issue without regressing the earlier issue. I'll probably attach a patch today or tomorrow.
| Comment | File | Size | Author |
|---|---|---|---|
| views.view_.facilities.yml | 52.57 KB | dylan donkersgoed |
Issue fork geolocation-3292057
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dylan donkersgoed commentedIt was because the filter-specific identifier wasn't applied to the groupForm() method, only the normal valueForm method. Didn't realize at first that the view was using aggregation. I've attached an MR that fixes the issue.
Comment #4
christianadamski commentedThanks!
But why the
?
Comment #5
alina.basarabeanu commentedWe came across the same issue on our website. The views results were not filtered by the address and the proximity after updating to version 3.10 for the module.
Applying the fork fixed the issue.
I assumed that the property '#tree' is needed on the form element because it has children.
Comment #6
sralton commentedHad the same issue on my site. I applied the patch file of the merge request to the Version 3.12 and worked like a charm.
Comment #7
kurttrowbridgeThis also resolved issues with grouped proximity filters on a site of ours. Since others have said the same above, I'm going to mark this as RTBC. Thank you!
Comment #8
socialnicheguru commentedIs this an issue in 4.0@alpha geolocation version?
Comment #9
christianadamski commentedTested and works!
Will also manually merge for v4.
Comment #10
christianadamski commentedComment #11
socialnicheguru commentedLooking forward to fix added to 4.x.
Comment #12
christianadamski commentedAlready pushed to -dev
Comment #13
socialnicheguru commentedThere are two pushes. Are they the same? I am trying to add the commits to my composer file on top of 4.x-alpha4. One does not apply while the other does.
Comment #14
christianadamski commentedReleasing 4.0.0-alpha5