Exporting "Master Address belongs to" not working as intended when exporting several addresses
Many people store more than one postal address with an individual (e.g. work and home) and one of them may be shared with the employer. When exporting contacts and their addresses, one would need the name of the employer which should be provided by "Master Address belongs to".
The problem seems to be that during export "Master Address belongs to" seems to ignore the location type. For example, if the work address is shared and teh home address is not shared, exporting the home address including "Master Address belongs to" (with the location type home) will export the name of the contact that is the master of the work address.
I reproduced this on several environments including 4.7.29 and on the Drupal sandbox (currently 5.2alpha1). Steps to reproduce:
- Create an individual with two postal adddresses, the work address should be shared with another contact.
- Export the individual and include "Master Address belongs to" for the primary address, the home address and the work address (see also screenshot) The expected result would be that the columns for "Work-Master Address Belongs To" is filled, "Home-Master Address Belongs To" is not filled and "Master Address Belongs To" (orimary location) is filled only if the work address is set as primary.