Details
-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.7.20
-
Fix Version/s: None
-
Component/s: Core CiviCRM, Import
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
When both country and state province have a default defined in Admin => Localization => Languages, currency, location anything that creates or updates address where the address is left blank will result in an address record with only the country and state/province. If it is an update via profiles, and I suspect import, the existing address info, street, city, zip will be wiped out.
The behavior is correct if only the country is defaulted. The correct behavior should be to ignore any address update or creation where the only info is country and/or state/province.
To reproduce:
New Contact
- Set defaults for both country and state/province
- Create a new contact with just a name. The new contact will end up with an address record with only the country and state. You will see that on the contact form.
Profile
- Set defaults for both country and state/province
- Create a profile that includes address
- Use that profile in a donation, event registration or other registrations.
- Register or make a donation of an existing contact who has a full address but leave the address info blank when registering. Insure the matching rule will match
- The existing contact will end up having the address info that was there replaced with blanks.