Skip to content

Commit

Permalink
Revert "fix(Contact): use existing full name" (#22119)
Browse files Browse the repository at this point in the history
This reverts commit 296d6e9.
  • Loading branch information
barredterra committed Aug 19, 2023
1 parent f39bc79 commit c394053
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frappe/contacts/doctype/contact/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,18 @@ def invite_user(contact):
@frappe.whitelist()
def get_contact_details(contact):
contact = frappe.get_doc("Contact", contact)
return {
out = {
"contact_person": contact.get("name"),
"contact_display": contact.get("full_name"),
"contact_display": " ".join(
filter(None, [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"),
"contact_designation": contact.get("designation"),
"contact_department": contact.get("department"),
}
return out


def update_contact(doc, method):
Expand Down

0 comments on commit c394053

Please sign in to comment.