Browse Source

fix: use `get_all` instead of `get_list` while fetching linked doctypes

version-14
Rucha Mahabal 3 years ago
parent
commit
d56fea4a47
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/desk/form/linked_with.py

+ 1
- 1
frappe/desk/form/linked_with.py View File

@@ -133,7 +133,7 @@ class SubmittableDocumentTree:
"""Returns list of submittable doctypes. """Returns list of submittable doctypes.
""" """
if not self._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 return self._submittable_doctypes






Loading…
Cancel
Save