I have configured geofield with lat / long as the input, i can edit the node and the correct value is saved, but when i edit that node, the field values are empty

Comments

dgtlmoon’s picture

Status: Active » Closed (cannot reproduce)

oops wrong module i think, not sure where this value came from

wvd_vegt’s picture

Status: Closed (cannot reproduce) » Active

Hi

I have exaxtly this issue after an upgrade from 7.x-1.1 to 7.x-2.0-alpha2 .

During upgrade i had no error messages. If I enter a new value in the long/lat fields of the map they are saved without an error but the map is not updated and subsequent re-editing shows empty long/lat fields again.

After some experimenting and removing the two floatval calls around line 157 of geofield.widget.inc i see a capital letter 'P' in the two fields lat/lon.

regards
wvd_vegt

Brandonian’s picture

Added a commit that fixes this issue, along with adding unit tests to check for feature regression. It currently fails with the bounds widget, not 100% sure why yet, since manual confirmation seems to check out.

http://drupalcode.org/project/geofield.git/commit/d9f68d4

Brandonian’s picture

Status: Active » Fixed

Marking fixed.

dgtlmoon’s picture

nice work, thanks!

wvd_vegt’s picture

Hi

Thanks a lot, fixes it!

regards

Status: Fixed » Closed (fixed)

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