fix: contact link with autoincr (#26642)

This commit is contained in:
Ankush Menat 2024-06-03 10:29:48 +05:30 committed by GitHub
parent 673f45b3e9
commit b63295d25c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ class Contact(Document):
# concat party name if reqd
for link in self.links:
self.name = self.name + "-" + link.link_name.strip()
self.name = self.name + "-" + cstr(link.link_name).strip()
break
if frappe.db.exists("Contact", self.name):