Parcourir la source

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

version-14
Rucha Mahabal il y a 3 ans
Parent
révision
d56fea4a47
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/desk/form/linked_with.py

+ 1
- 1
frappe/desk/form/linked_with.py Voir le fichier

@@ -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




Chargement…
Annuler
Enregistrer