mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix(lead): reload contact before updating links (#29966)
* fix(lead): reload contact before updading links Contact might have changed since it was created. * refactor: reload contact after insert
This commit is contained in:
@@ -214,6 +214,7 @@ class Lead(SellingController):
|
|||||||
})
|
})
|
||||||
|
|
||||||
contact.insert(ignore_permissions=True)
|
contact.insert(ignore_permissions=True)
|
||||||
|
contact.reload() # load changes by hooks on contact
|
||||||
|
|
||||||
return contact
|
return contact
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user