Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Jan 2011 at 17:11 UTC
Updated:
7 Nov 2011 at 18:28 UTC
Jump to comment: Most recent file
Hi everybody,
updating a value contained in a Location field, putting a '0' (zero) at it's beginning, ends with the zero not saved.
How to reproduce it:
I attached a patch to fix this bug, but it needs reviews.
Greetings
Alberto
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | location_leading_zeros.patch | 434 bytes | kongoji |
| location_leading_zeros.patch | 434 bytes | kongoji |
Comments
Comment #1
kongoji commentedsorry, I switched the files before, so this is the correct patch.
Comment #2
jim005 commented+1 . Need to be fixed. 10% of French postcode start by zero. In addition, when you edit a location previously saved with a postcode 01234, then lat/long geocode is recalculated with "1234" which another geographic area. ==> Bug !
Comment #3
dandaman commentedThis code does help on my 7.x-3.x-dev version as well. It is also helpful.
Comment #4
John Carbone commented+1. Applied patch, now works as expected. Thanks kongoji!
Comment #5
math-hew commentedApplied patch, it fixed this issue for me. Thanks!
Comment #6
ankur commentedCommitted to 6.x-3.x/7.x-3.x/7.x-4.x.
Thanks to kongoji for the patch and thanks to all that tried and verified it.