search results do not show primary data if searchPrimaryDetailsOnly = false
Overview
The search result should show the primary data consistently even if the searchPrimaryDetailsOnly = false.
Reproduction steps
- Go to search settings and turn searchPrimaryDetailsOnly off.
- Then created a new contact with two email addresses. Consider the second email address as primary
- Now conduct a search to find that record.
Current behavior
The search results will show the lower id/first email in the listing, even if it isn't the primary email.
Expected behavior
The search results should consistently display the primary data, so it should show the second email address in the list