From 1458429d982b3139a1dc6d377bd5c12fcbd36177 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Fri, 23 Dec 2022 18:43:28 +0000 Subject: [PATCH 1/2] chore(Document): remove code that resets `self.latest` (#19399) --- frappe/model/document.py | 2 -- 1 file changed, 2 deletions(-) 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) From 5e6ac70644407d056d8267197fff27796a117574 Mon Sep 17 00:00:00 2001 From: Sabu Siyad Date: Sat, 24 Dec 2022 11:07:28 +0530 Subject: [PATCH 2/2] fix(link/js): handle undefined `link_title_doctypes` in `frappe.boot` (#19398) Signed-off-by: Sabu Siyad Signed-off-by: Sabu Siyad --- frappe/public/js/frappe/form/controls/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();