When importing/updating persons, taking over the address of another contact does not work.
Overview
When importing/updating persons, taking over the address of another contact (organisation) via CiviCRM Field "Master address belongs to" does not work.
The import job runs without errors, but the address was not assigned.
Reproduction steps
-
Find out the "Address ID" of the organisation (via phpMyAdmin or "Export contacts" -> field "Address ID")
-
Create the CSV import/update file.
-
Click on Contacts -> Import Contacts.
-
Fill out forms (see pictures)
-
Run import/update
Current behaviour
No error during import, but the address was not taking over.
Expected behaviour
The company address should be assigned to the person.
Environment information
- Browser: Firefox 115.0.2 (64-Bit)
- CiviCRM: 5.55.2
- PHP: _7.4.3-4ubuntu2.18_
- CMS: WordPress 6.1.1
- Database: Ver 8.0.33-0ubuntu0.20.04.2
- Web Server: Apache/2.4.41 (Ubuntu)
Comments
It seems, the code to handle "Master address belongs to" during the import/update of contacts not exists in CiviCRM core in version 5.55.2.