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.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | geofield-lat-lon-widget-2718511-2-8.x-1.x-dev.patch | 800 bytes | anfor |
Comments
Comment #2
anfor CreditAttribution: anfor at Axess Open Web Services for Axess Open Web Services commentedComment #4
plopescPatch committed to -dev version
Thanks