disciple-tools-theme
disciple-tools-theme copied to clipboard
Mapping: Google API key is not used in custom filter dialog
Describe the bug
When a Google API key is added for mapping, it is correctly used on the contact/post detail page for searching locations. However, when creating a custom filter on the Location field, the input is using the DT API /wp-json/dt/v1/mapping_module/search_location_grid_by_name
instead of https://maps.googleapis.com/maps/api/place/js/AutocompletionService.GetPredictionsJson
To Reproduce Steps to reproduce the behavior:
- Add Google API key for Mapping
- On Contact list page, click "Create custom filter"
- Select location field
- Search for "Bourj Hammoud, Lebanon" and monitor network traffic
Expected behavior Custom filter location search should use Google geocoding service and thus return "Bourj Hammoud, Lebanon"
Screenshots If applicable, add screenshots to help explain your problem.
Disciple.Tools Theme:
- version: 1.62.1
- setup: single site (WPEngine)
Device and browser (please complete the following information):
- Device: MacBook
- OS: macos 14.4.1
- Browser: Chrome
- Version: 124.0.6367.158