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.)

Comments

petsagouris’s picture

Status: Active » Needs review
ankur’s picture

Status: Needs review » Closed (fixed)

@james.williams

Thanks for the patch. Committed to 7.x-3.x and 7.x-5.x.