Address: Adding a new address block with just the country fails
Assuming that you have a preselected country (Default contact country) in your CiviCRM and you try to add a new address:
- If you do not select a country on a new empty address, nothing will be stored
- If you select another country on an empty address (other than the preselected one), the country will be stored
Operations through drush
(eg. drush cvapi address.create contact_id=x country_id=1228
) appear not to affect this abovementioned behaviour.
I cannot find any reason why should be happening or if this was being intended. The culprit is located here where it should be returning TRUE
.
If the behaviour is unintended, we will provide a (simple) patch to resolve this.
Note: Credit goes to @dmunio