1
0
forked from test/crm

Merge pull request #950 from frappe/mergify/bp/main-hotfix/pr-946

fix(WhatsApp): prevent TypeError when concatenating first and last name (backport #946)
This commit is contained in:
Shariq Ansari 2025-06-23 13:26:04 +05:30 committed by GitHub
commit 6d114f7cb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -335,5 +335,5 @@ def get_from_name(message):
else:
from_name = doc.get("lead_name")
else:
from_name = doc.get("first_name") + " " + doc.get("last_name")
from_name = " ".join(filter(None, [doc.get("first_name"), doc.get("last_name")]))
return from_name