Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had problems with proximity filter criteria. No matter what i tried the proximity distance was always zero. The field with address is stored in a field inside of profile2 of that user.
Problem was that this geofield function for returning latitude and longitude didn't check if chosen source point field is saved in profile2, so the result was automaticlly zero.
I created patch for this issue.
Comment | File | Size | Author |
---|---|---|---|
#4 | geofield-proximity_filter_CurrentUser_profile2-2844231-4-D7.patch | 1.12 KB | mkrizaj |
Comments
Comment #2
mkrizaj CreditAttribution: mkrizaj commentedHere is patch.
Comment #3
mkrizaj CreditAttribution: mkrizaj commentedComment #4
mkrizaj CreditAttribution: mkrizaj commentedSorry guys.
My first patch was uploaded with wrong indent. Now I am uploading new one with correct drupal coding standars.
Comment #5
mkrizaj CreditAttribution: mkrizaj commented