crm
crm copied to clipboard
Search contact by Email, only search for Primary Email
Hi Oro Team,
We have contacts with multiples emails

Actual Behaviour
When searching for an email that is not the primaryEmail, there is no results

Expected behaviour
- Email is found and listed in the results
- or; rename the filter criteria to Primary Email
Please let us know if you think this should be corrected, if so we can submit a PR
Thanks, Samuel
Hi Samuel,
in datagrid configuration, indeed, we use primary email condition to fetch contact's email https://github.com/oroinc/crm/blob/master/src/Oro/Bundle/ContactBundle/Resources/config/oro/datagrids.yml#L209. In this case, in fact it can be misleading, so I suggest to change label to "Primary email". Btw. the same applies to "Phone" -> "Primary phone". Thanks for your contribution!
Regards, Daniel