Hi,

Problem/Motivation

I create a geofield field (non required) and used the Lat/Lon widget.
On my entity edit form, I seized the value "foo" for the Latitude and "bar" for the Longitude.
After submission I got the following error:
The website encountered an unexpected error. Please try again later.

Proposed resolution

The error came from the widget plugin during the massageFormValues method.
The comparison on the component value should be, my value is empty or is not numeric.

Remaining tasks

Reviews needed

User interface changes

None

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anfor created an issue. See original summary.

anfor’s picture

Status: Active » Needs review
FileSize
800 bytes

  • plopesc committed e82a536 on 8.x-1.x authored by anfor
    Issue #2718511 by anfor: Lat/Lon field widget values plain string
    
plopesc’s picture

Status: Needs review » Fixed

Patch committed to -dev version

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.