commit | b1385f676a60fe13201399e7051d4c7b6cfcf878 | [log] [tgz] |
---|---|---|
author | Sahil Khan <sahilkhan28297@gmail.com> | Thu May 07 16:47:41 2020 +0530 |
committer | Sahil Khan <sahilkhan28297@gmail.com> | Thu May 07 16:47:41 2020 +0530 |
tree | 311a495504072cd6db6fb7d99f22dbbd76ed8f40 | |
parent | 58f02e7c101548522e303d1fe1a5cd6cbb216432 [diff] |
fix(lead): strip lead_name before splitting
diff --git a/erpnext/crm/doctype/lead/lead.py b/erpnext/crm/doctype/lead/lead.py index 74b3582..ec7d14d 100644 --- a/erpnext/crm/doctype/lead/lead.py +++ b/erpnext/crm/doctype/lead/lead.py
@@ -153,7 +153,7 @@ if not self.lead_name: self.set_lead_name() - names = self.lead_name.split(" ") + names = self.lead_name.strip().split(" ") if len(names) > 1: first_name, last_name = names[0], " ".join(names[1:]) else: