From d56fea4a4717dec68d020e2fbea7ff443d9b74a9 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Thu, 16 Dec 2021 09:11:21 +0530 Subject: [PATCH] fix: use `get_all` instead of `get_list` while fetching linked doctypes --- frappe/desk/form/linked_with.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/form/linked_with.py b/frappe/desk/form/linked_with.py index 14ea2712e2..cd87c898d8 100644 --- a/frappe/desk/form/linked_with.py +++ b/frappe/desk/form/linked_with.py @@ -133,7 +133,7 @@ class SubmittableDocumentTree: """Returns list of submittable doctypes. """ if not self._submittable_doctypes: - self._submittable_doctypes = frappe.db.get_list('DocType', {'is_submittable': 1}, pluck='name') + self._submittable_doctypes = frappe.db.get_all('DocType', {'is_submittable': 1}, pluck='name') return self._submittable_doctypes