Closed (fixed)
Project:
Location
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2011 at 09:52 UTC
Updated:
4 Feb 2012 at 00:33 UTC
The city or province entered can be wiped out on saving a location field, if either is not present. This is because _location_geo_logic() in location.module looks get the information from the postalcode data if either are not present. But if either are present, they may get removed if the returned data is blank.
The attached patch only fills in the city/province if they were previously blank. (So data entered by the user will not get overwritten.)
| Comment | File | Size | Author |
|---|---|---|---|
| location-city-province-removed.patch | 705 bytes | james.williams |
Comments
Comment #1
petsagouris commentedComment #2
ankur commented@james.williams
Thanks for the patch. Committed to 7.x-3.x and 7.x-5.x.