Merge pull request #21643 from sahil28297/fix_lead_name

fix(lead): strip lead_name before splitting
This commit is contained in:
rohitwaghchaure 2020-05-08 10:35:48 +05:30 committed by GitHub
commit 67c33d1f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ class Lead(SellingController):
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: