ginkgostreet / com.ginkgostreet.geofill

When CiviCRM geocodes an address, the geocoding service generally returns much more information than CiviCRM uses. This extension allows site administrators to set a policy for what to do with that information on a field-by-field basis: discard it, fill in missing data, or overwrite existing data.
Other
4 stars 2 forks source link

The policy fields used are ID fields, but the fields received from ge… #3

Open ghost opened 7 years ago

ghost commented 7 years ago

…ofill_civicrm_geocoderFormat are non-ID (ie: country_id vs country).

This causes the getWritableAddressComponents function to mistakenly evalutate that a field needs to be updated because it does not exist:

$addressComponents['country_id'] is undefined because the data is in $addressComponents['country']

Fix might not be the best way to resolve this issue, but I found it to be the simplest.