diff --git a/frappe/model/document.py b/frappe/model/document.py index 125c44e994..d60fae7ab5 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -1113,8 +1113,6 @@ class Document(BaseDocument): if (self.doctype, self.name) in frappe.flags.currently_saving: frappe.flags.currently_saving.remove((self.doctype, self.name)) - self.latest = None - def clear_cache(self): frappe.clear_document_cache(self.doctype, self.name) diff --git a/frappe/public/js/frappe/form/controls/link.js b/frappe/public/js/frappe/form/controls/link.js index 076e343f22..b0a36aa2e8 100644 --- a/frappe/public/js/frappe/form/controls/link.js +++ b/frappe/public/js/frappe/form/controls/link.js @@ -90,7 +90,7 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat return in_list(frappe.boot?.translated_doctypes || [], this.get_options()); } is_title_link() { - return in_list(frappe.boot.link_title_doctypes, this.get_options()); + return in_list(frappe.boot?.link_title_doctypes || [], this.get_options()); } async set_link_title(value) { const doctype = this.get_options();