Exporting related contact's information on a contact that is a subtype fails
Overview
There is an old bug described on the old issue tracker that prevents related contact information to be exported via the UI if one of the contacts is a subtype. https://issues.civicrm.org/jira/browse/CRM-16693
Reproduction steps
- Search for any contacts, e.g. a subtype
- Select at least one contact and choose "export contacts"
- choose select fields for export
- select display name or anything else of the contact (will be exported correctly)
- select a field of a related contact (relationship) e.g. display name
Current behaviour
If one of the contacts is a contact subtype or the relationship is defined to be only allowed among subtypes the exported columns won't contain any data (data of the "main contact" will be exported correctly).
Expected behaviour
Data of related contact should be exported as well.
Environment information
- Browser: all
- CiviCRM: Since 4.6.x still occuring in 5.35.x
Comments
We may have funding to fix this bug and would appreciate an estimate from the core team.