Provide default empty geolocation_geocoder_address form value if empty.

Created on 28 June 2024, 6 months ago
Updated 26 August 2024, 4 months ago

Problem/Motivation

I inherited a project where there is a form on a map but the page is rendered before the form is submitted.

It would be great to check and provide a default empty value for the `geolocation_geocoder_address` if it's empty, so that PHP doesn't display warnings.

The Google Maps provider seems to be fine with an empty value, but ymmv for other providers.

Steps to reproduce

Embed a map on a page that has not submitted the form yet.

Proposed resolution

Check to see that the form value exists before using its value.

Remaining tasks

Patch incoming.

πŸ› Bug report
Status

Fixed

Version

3.13

Component

Geolocation Field / Backend

Created by

πŸ‡ΊπŸ‡ΈUnited States dzinkevich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024