Details
-
Type: Bug
-
Status: Open
-
Priority: Important
-
Resolution: Unresolved
-
Affects Version/s: 4.7.30
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
You have two contacts, Alice and Bob. Bob’s address “belongs” Alice. When Bob is updated via a profile, Bob’s address remains linked to Alice’s but the consistency of address field values is not preserved between Alice and Bob. This is bad because an edit-save cycle on Bob will wipe out the newly-entered address values, replacing them with the old value from Alice.
Steps to reproduce:
- Set the unsupervised de-dupe rule to match on email only.
- Create a profile which updates contacts on duplicate match and contains the following fields
- First Name(Individual)
- Last Name(Individual)
- Email (Primary)(Contact)
- Street Address (Home)(Contact)
- City (Home)(Contact)
- Postal Code (Home)(Contact)
- Country (Home)(Contact)
- State (Home)(Contact)
- Create an individual contact as follows:
- First Name: Alice
- Last Name: Foo
- Email: alice@example.com
- Street Address (Home): 111 Apple Ave
- City (Home): Abbington
- Postal Code (Home): 11111
- Country (Home): USA
- State (Home): AL
- Create an individual contact as follows:
- First Name: Bob
- Last Name: Foo
- Email: bob@example.com
- Address (Home): (use Alice’s address)
- As an anonymous user, submit the profile with the following values:
- First Name: Bob
- Last Name: Foo
- Email: bob@example.com
- Street Address: 222 Banana Blvd
- City: Benton
- Postal Code: 222222
- Country: USA
- State: AL
- Expect either of the following:
- Bob’s address is 222 Banana; Alice’s address is 111 Apple; the two are not linked
- Bob’s and Alice’s addresses are both 222 Banana and linked
- Observe the following:
- Bob’s address is 222 Banana; Alice’s address is 111 Apple; the two are linked
- Edit Bob’s contact record
- Save, without making any changes
- Expect that Bob’s address remains 222 Banana through this edit.
- Observe that Bob’s address is changed to 111 Apple and we’re all out of bananas!
Other notes
- Updating Alice’s address via a profile works fine — Bob’s address is updated.
- As noted above, I’m not entirely sure what to expect when updating Bob’s address, but given the previous point, I think I’d lean towards expecting that Alice’s address is also updated.