Closed (fixed)
Project:
Location
Version:
5.x-3.0-test2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2008 at 04:32 UTC
Updated:
4 Sep 2008 at 16:52 UTC
Sometimes, the latitude or longitude seems to end up as the string "0.000000". When this happens the location is displayed in the location template, since "0.000000" evaluates to true as a string.
I can reproduce this by geocoding an invalid address with Google.
I have fixed this in my version by comparing the latitude and longitude numerically with zero.
| Comment | File | Size | Author |
|---|---|---|---|
| location-zerolatlon.patch | 713 bytes | scottgifford |
Comments
Comment #1
bdragon commentedCommitted, with changes.
I really think *one* of the two should be allowed to be 0.000000.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.