Merge pull request #7237 from kennethsequeira/contact-sal

feat: Add salutation to contact display 😁
This commit is contained in:
Suraj Shetty 2019-04-09 14:05:29 +05:30 committed by GitHub
commit fbeacac986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ def get_contact_details(contact):
out = {
"contact_person": contact.get("name"),
"contact_display": " ".join(filter(None,
[contact.get("first_name"), contact.get("last_name")])),
[contact.get("salutation"), contact.get("first_name"), contact.get("last_name")])),
"contact_email": contact.get("email_id"),
"contact_mobile": contact.get("mobile_no"),
"contact_phone": contact.get("phone"),