When entering geofield coordinates manually, using the latitude / longitude widget, if the longitude or the latitude is set to "0" (and the other to any value), then both values are lost upon saving (as if no coordinates were input)

Issue fork geofield-3231299

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vdsh created an issue. See original summary.

el7cosmos’s picture

I can reproduce this. Will add some test

el7cosmos’s picture

Status: Active » Needs review
vdsh’s picture

The code looks convoluted, but I didn't find any better way of writing it, and it does the job. So, +1 to commit for me!

itamair’s picture

Well ... it simply looks we want to block Coordinates values that are Null or not Numeric. So the code could be much more clear and synthetic ...

itamair’s picture

Status: Needs review » Fixed

  • itamair committed 2d1eb64 on 8.x-1.x authored by el7cosmos
    Issue #3231299 by el7cosmos, vdsh, itamair: Lat/Long not set if one of...

Status: Fixed » Closed (fixed)

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