Skip to content

Commit

Permalink
Merge pull request #38564 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38562

fix: get dynamic link with parenttype contact (backport #38562)
  • Loading branch information
shariquerik authored Dec 4, 2023
2 parents 88d2a8d + cb9589b commit 39e04b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/crm/doctype/lead/lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def before_insert(self):
if self.source == "Existing Customer" and self.customer:
contact = frappe.db.get_value(
"Dynamic Link",
{"link_doctype": "Customer", "link_name": self.customer},
{"link_doctype": "Customer", "parenttype": "Contact", "link_name": self.customer},
"parent",
)
if contact:
Expand Down

0 comments on commit 39e04b1

Please sign in to comment.