mailing label primary address selection ignored if global option searchPrimaryDetailsOnly disabled
To reproduce:
- set Search Preferences > Search Primary Details Only to No
- create a contact and add two distinguishable addresses
- search for the contact
- from the search actions task list, select Mailing Labels
- choose primary and generate the labels
The non-primary address will be created. Note -- under the hood, it appears that when no location type or is_primary is selected, the lowest address ID is what will be included in the mailing label. You may need to tweak the raw address records to ensure the non-primary address has a lower ID in order to replicate.